Skip to content

Conversation

@ansd
Copy link
Member

@ansd ansd commented Jul 27, 2024

Fixes #11841

PR #11307 introduced the assertion that at most one credit request between session proc and quorum queue proc can be in flight at any given time. However, this is not the case when rabbit_fifo_client re-sends credit requests on behalf of the session proc when the quorum queue leader changes.

This commit therefore removes assertions which assumed only a single credit request to be in flight.

This commit also removes field queue_flow_ctl.desired_credit since it is redundant to field client_flow_ctl.credit

@ansd ansd force-pushed the credit-reply-crash branch 3 times, most recently from 7ae2615 to f3bd5ea Compare July 27, 2024 14:17
Fixes #11841

PR #11307 introduced the invariant that at most one credit request between
session proc and quorum queue proc can be in flight at any given time.
This is not the case when rabbit_fifo_client re-sends credit
requests on behalf of the session proc when the quorum queue leader changes.

This commit therefore removes assertions which assumed only a single credit
request to be in flight.

This commit also removes field queue_flow_ctl.desired_credit
since it is redundant to field client_flow_ctl.credit
@ansd ansd force-pushed the credit-reply-crash branch from f3bd5ea to ce915ae Compare July 28, 2024 10:35
@ansd ansd marked this pull request as ready for review July 28, 2024 10:35
@ansd ansd added the bug label Jul 28, 2024
@michaelklishin
Copy link
Collaborator

Thank you for the reproduction steps in #11841.

@michaelklishin michaelklishin merged commit 777fd6f into main Jul 28, 2024
@michaelklishin michaelklishin deleted the credit-reply-crash branch July 28, 2024 23:52
@michaelklishin michaelklishin added this to the 4.0.0 milestone Jul 28, 2024
michaelklishin added a commit that referenced this pull request Jul 29, 2024
Fix quorum queue credit reply crash in AMQP session (backport #11846)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Crash in credit reply on quorum queue leader change

3 participants