New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
KAFKA-6207 : Include start of record when RecordIsTooLarge #4234
Conversation
FAILURE |
21 similar comments
FAILURE |
FAILURE |
FAILURE |
FAILURE |
FAILURE |
FAILURE |
FAILURE |
FAILURE |
FAILURE |
FAILURE |
FAILURE |
FAILURE |
FAILURE |
FAILURE |
FAILURE |
FAILURE |
FAILURE |
FAILURE |
FAILURE |
FAILURE |
FAILURE |
FAILURE |
1 similar comment
FAILURE |
SUCCESS |
When a message is too large to be sent (at org.apache.kafka.clients.producer.KafkaProducer#doSend), the RecordTooLargeException should carry the start of the record (for example, the first 1KB) so that the calling application can debug which message caused the error.
To resolve this, I created a new function which will get the first 1KB of the message (if the RecordTooLargeException is occurring), and the same will be logged...
Thanks,
Sumit Jawale
Committer Checklist (excluded from commit message)