-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
KeyShared stickyHashRange subscription: prevent stuck subscription in case of consumer restart #14014
Conversation
…of consumer restart
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good work @eolivelli !
Actually @codelipenghui helped me in finding out the problem and suggesting the fix |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work. 👍🏼
Thank you @codelipenghui for helping out! |
Messages are not lost, since they're still tracked in backlog. It's just stuck. |
This is correct, for instance you can read them from another partition or you can reset the subscription to an earlier offset. |
@merlimat I updated the title |
You'd just need to reconnect your consumers (eg: unload the topic) to get them unblocked. |
… case of consumer restart (#14014) ### Motivation When using KeyShared subscription with `stickyHashRange` it is possible to a stuck subscription while restarting the consumers. This bug is not a regression in 2.10, the problem is present also in Pulsar 2.8 (and probably older versions) ### Modifications add the entry to the list of messaged to be redelivered (cherry picked from commit da9e806)
… case of consumer restart (#14014) When using KeyShared subscription with `stickyHashRange` it is possible to a stuck subscription while restarting the consumers. This bug is not a regression in 2.10, the problem is present also in Pulsar 2.8 (and probably older versions) add the entry to the list of messaged to be redelivered (cherry picked from commit da9e806)
… case of consumer restart (apache#14014) ### Motivation When using KeyShared subscription with `stickyHashRange` it is possible to a stuck subscription while restarting the consumers. This bug is not a regression in 2.10, the problem is present also in Pulsar 2.8 (and probably older versions) ### Modifications add the entry to the list of messaged to be redelivered
Motivation
When using KeyShared subscription with
stickyHashRange
it is possible to a stuck subscription while restarting the consumers.This bug is not a regression in 2.10, the problem is present also in Pulsar 2.8 (and probably older versions)
Modifications
add the entry to the list of messaged to be redelivered
Verifying this change
this patch adds a test that cover the change
Documentation
no-need-doc