-
-
Notifications
You must be signed in to change notification settings - Fork 545
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
Consider ILLEGAL_GENERATION error as rebalancing error #1474
Conversation
5612e55
to
897eb72
Compare
I just encountered the error which causes my consumer to end up in crashed state (which sends shutdown signal to the process). |
Also we are facing this error. @jakewins do you know if you PR is going to be merged or should be used a different way to handle the error ? thanks 🙏 |
We're also watching this one closely. We have quite a number of kafka consumers & we recently had to create custom crash listeners to deal with just this case. |
hey @kevinhering :) thanks ! |
@rpastore-wolt I apologize for the delay. We've implemented a crash listener in our consuming code to listen for this particular event (see the docs on Instrumenting Events for some info about event listeners & the crash event). Here's the basic idea:
in the crash event handler, look for an event with payload similar to this (pay particular attention to values in
You can add whatever code you need in order to alert/restart the consumer from here. Hope that helps. (and hope we won't need this soon!) |
|
Also been watching this PR for months, very eager to see it hopefully merged in. 🤞 🤞 |
We are waiting on this too. Any timeline on a a fix? |
We're hitting this too, and it's causing a bit of toil. Would really appreciate a merge 🙏 ! |
We're hitting this as well. Causing major issues when confluent cloud performs their cluster rolls. We see consumer crashes every 5-10 minutes for a 2 hour span |
Just checking this issue is active and being looked after. This is exactly our problem and it is absolutely major to us. Thank you all. 🙌 |
This error is indicating that the consumer is trying to commit offsets, but the consumer group has changed to a new generation. Retrying within the existing session will indeed not work, but rejoining the group and re-trying should be successful. Fixes tulios#1009
897eb72
to
5ec2806
Compare
This bug has been resolved in v2.2.4. Thanks @jakewins for the fix! |
This error is indicating that the consumer is trying to commit offsets, but the consumer group has changed to a new generation.
Retrying within the existing session will indeed not work, but rejoining the group and re-trying should be successful.
Fixes #1466