Sergey Postument
04/25/2023, 1:35 PMKafkaSink to save my events in kafka, but during big load I getting flink app restart due to Caused by: org.apache.kafka.common.errors.RecordTooLargeException: The message is 6520160 bytes when serialized which is larger than the maximum request size you have configured with the max.request.size configuration.
what is pretty strange, since my messages I save via kafkaSink are json string with 2k char length maximum. not `6520160`bytes (6.5Mb). Pls point me to some documentation, what am I missing here? p.s. flink 1.14.6Oleksandr Nitavskyi
04/25/2023, 1:57 PMmessage.max.bytes configuration on broker side (or only for topic config) is 6520160 bytes. Apparently with spike of load you get an exceptionally big message.
(kafka doc: https://kafka.apache.org/documentation/#brokerconfigs_message.max.bytes)Sergey Postument
04/25/2023, 2:03 PMmax.message.bytes . Since I reach some limit but my messages much less than 1mb I think there’s some batching process.
Can I control it via KafkaSink ?Oleksandr Nitavskyi
04/25/2023, 2:23 PMSergey Postument
04/25/2023, 2:38 PMSergey Postument
04/25/2023, 2:39 PMOleksandr Nitavskyi
04/26/2023, 11:30 AMSergey Postument
04/26/2023, 12:22 PMtrack the size of the message and/or catch this exception in the sink and dump the message causing itbtw, any how-to do that? this is what I looking for. thanks in advance
Oleksandr Nitavskyi
04/26/2023, 12:51 PMgauge metric probablySergey Postument
04/26/2023, 1:15 PMOleksandr Nitavskyi
04/26/2023, 1:24 PM