Skip to content

use a BoolChannel for @is_leader with a timeout to make sure it is set #1138

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

viktorerlingsson
Copy link
Member

WHAT is this pull request doing?

Use a BoolChannel for @is_leader with a timeout to make sure its set before checking its value when a node is trying to become leader.

Fixes a bug where sometimes a node would raise an error FATAL lmq.clustering.controller Another node in the cluster is advertising the same URI when trying to become leader, because of a timing issue where @is_leader had not been set before it needed to be used.

HOW can this pull request be tested?

Manual

…erly set before raising error when node is trying to become leader
@viktorerlingsson viktorerlingsson requested a review from a team as a code owner June 4, 2025 12:31
…ts properly set before raising error when node is trying to become leader
viktorerlingsson and others added 2 commits June 4, 2025 14:58
Co-authored-by: Carl Hörberg <carl@84codes.com>
Co-authored-by: Carl Hörberg <carl@84codes.com>
@carlhoerberg carlhoerberg changed the title use a BoolChannel for @is_leader with a timeout to make sure it is set use a BoolChannel for @is_leader with a timeout to make sure it is set Jun 4, 2025
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