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

on_producer_error callbacks don't work as expected in v2.5.0+ #418

Open
daniil-quix opened this issue Jul 23, 2024 · 0 comments
Open

on_producer_error callbacks don't work as expected in v2.5.0+ #418

daniil-quix opened this issue Jul 23, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@daniil-quix
Copy link
Collaborator

Problem

Users can provide on_producer_error callbacks to the Application class to catch and customize the handling of the producer errors.

In v2.5.0, we introduced producer delivery callbacks to improve the delivery guarantees, but the errors reported by the broker don't always trigger the on_producer_error.

Another problem is that these callbacks can be triggered by the messages produced to the changelog or repartition topics, and silencing these errors may harm the data consistency (e.g, producing to the changelog topic should not be silenced).

The serialization errors can still be handled by on_producer_error because they happen before producing the message.

Solution

We need to do some research to find the best way to handle new types of errors safely in the on_producer_error callbacks.

@daniil-quix daniil-quix added the bug Something isn't working label Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

1 participant