-
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
Fix remove pending acks in Key_Shared subscription #4407
Fix remove pending acks in Key_Shared subscription #4407
Conversation
@wolfstudy Thank you very much for discovering this problem in time. Please review the changes. |
run Java8 Tests |
LGTM +1 |
@@ -334,7 +334,7 @@ void messageAcked(CommandAck ack) { | |||
return; | |||
} | |||
|
|||
if (subType == SubType.Shared) { | |||
if (subType == SubType.Shared || subType == SubType.Key_Shared) { |
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.
Since this is being checked multiple times, we could have a static method to check for this condition
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.
Exactly this is being checked multiple times, i'm already add static method named Subscription.isIndividualAckMode(), PTAL
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.
👍
Motivation
Fix remove pending acks in Key_Shared subscription and some other stats issue of Key_Shared subscription
Does this pull request potentially affect one of the following parts:
If
yes
was chosen, please highlight the changesDocumentation