Skip to content
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

Messages exceeding the size are silently dropped #2426

Open
jacopofar opened this issue Feb 9, 2024 · 1 comment
Open

Messages exceeding the size are silently dropped #2426

jacopofar opened this issue Feb 9, 2024 · 1 comment

Comments

@jacopofar
Copy link

Hello,
I noticed some messages not being published to Kafka although the logs report no error, and it seems that if a message exceeds the maximum size (max_request_size in the Producer, in my case corresponding to the value in the topic settings) it is discarded but no exception is raised.

Is this a known behavior?

@jacopofar
Copy link
Author

A small update: calling flush() after send() I do get a warning:

WARNING kafka.producer.record_accumulator [Error 10] MessageSizeTooLargeError

it is a warning rather than an exception, but it's an improvement

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant