Skip to content

Conversation

@mergify
Copy link

@mergify mergify bot commented Aug 7, 2024

The leader returned in rabbit_quorum_queue:info/2 only ever queried the pid field from the queue record when more up to date info could have been available in the ra_leaderboard table.

This PR also improves rabbit_quorum_queue:shrink_all/1 to retry once if cluster change is not permitted
This could happen if a leader election occurred just before the member removal was initiated. In particular this could
happen when stopping and forgetting an existing rabbit node.


This is an automatic backport of pull request #11933 done by [Mergify](https://mergify.com).

The leader returned in rabbit_quorum_queue:info/2 only ever queried
the pid field from the queue record when more up to date info could
have been available in the ra_leaderboard table.

(cherry picked from commit e24bd06)
This could happen if a leader election occurred just before the
the member removal was initiated. In particular this could
happen when stopping and forgetting an existing rabbit node.

(cherry picked from commit 7b5d339)
@kjnilsson kjnilsson added this to the 4.0.0 milestone Aug 7, 2024
@kjnilsson kjnilsson merged commit 7ae3207 into v4.0.x Aug 7, 2024
@kjnilsson kjnilsson deleted the mergify/bp/v4.0.x/pr-11933 branch August 7, 2024 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants