When enriched event results in payloads larger than max.request.size, Flink's Kafka Sink producer will fail with org.apache.kafka.common.errors.RecordTooLargeException.
This will result in the message getting lost and the Taskmanager shutting down, and potentially failing to restart.
To improve application reliability, we should filter out these messages before producing them and forward the origin event to the application's error topic.
Related work: