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

QQ: fix a bug with discards using a consumer_id() #12442

Merged
merged 1 commit into from
Oct 7, 2024
Merged

Conversation

kjnilsson
Copy link
Contributor

Fixes a pattern matching bug for discards that come in after a consumer has been cancelled. Because the rabbit_fifo_client does not keep the integer consumer key after cancellation, late acks, returns, and discards use the full {CTag, Pid} consumer id version.

As this is a state machine change the machine version has been increased to 5.

The same bug is present for the modify command also however as AMQP does not allow late settlements we don't have to make this fix conditional on the machine version as it cannot happen.

Fixes: #12424

@kjnilsson kjnilsson added the bug label Oct 3, 2024
@kjnilsson kjnilsson added this to the 4.0.3 milestone Oct 3, 2024
@kjnilsson kjnilsson force-pushed the gh_12424 branch 2 times, most recently from 5ea9b6b to e7a1201 Compare October 3, 2024 12:26
Fixes a pattern matching bug for discards that come in after a consumer
has been cancelled. Because the rabbit_fifo_client does not keep
the integer consumer key after cancellation, late acks, returns, and
discards use the full {CTag, Pid} consumer id version.

As this is a state machine change the machine version has been
increased to 5.

The same bug is present for the `modify` command also however as
AMQP does not allow late settlements we don't have to make this
fix conditional on the machine version as it cannot happen.
@michaelklishin michaelklishin merged commit 6c07e70 into main Oct 7, 2024
440 checks passed
@michaelklishin michaelklishin deleted the gh_12424 branch October 7, 2024 14:38
@michaelklishin michaelklishin changed the title QQ: fix bug with discards using a consumer_id() QQ: fix a bug with discards using a consumer_id() Oct 7, 2024
michaelklishin added a commit that referenced this pull request Oct 7, 2024
QQ: fix bug with discards using a consumer_id() (backport #12442)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants