Skip to content

Conversation

@kjnilsson
Copy link
Contributor

@kjnilsson kjnilsson 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.

@kjnilsson kjnilsson requested a review from ansd August 7, 2024 08:40
@kjnilsson kjnilsson force-pushed the qq-improve-leader-detection branch from 087f083 to 7fd0888 Compare August 7, 2024 10:58
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 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.
@kjnilsson kjnilsson force-pushed the qq-improve-leader-detection branch from 7fd0888 to 7b5d339 Compare August 7, 2024 11:03
@kjnilsson kjnilsson merged commit 503f890 into main Aug 7, 2024
@kjnilsson kjnilsson deleted the qq-improve-leader-detection branch August 7, 2024 13:32
kjnilsson added a commit that referenced this pull request Aug 7, 2024
QQ: refactor and improve leader detection code. (backport #11933)
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.

4 participants