I see for example exception like this:
org.apache.kafka.common.errors.RecordTooLargeException: The message is 10000190 bytes when serialized which is larger than the maximum request size you have configured with the max.request.size configuration.
Is there a way to know more about a ProducerRecord that caused this exception?
In Supervisor
or recoverWith
I have only info about exception.
I can't wrap anything with try catch
, because I'm using built in Kafka Flow or Kafka Sink. Probably I'd need to give up with this integration and use Kafka producer manually, because I see no other solution.