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

replace monitor_cb by raft state_cb. #543

Closed
wants to merge 2 commits into from

Conversation

MathieuBordere
Copy link
Contributor

@MathieuBordere MathieuBordere commented Dec 1, 2023

The state_cb is called immediately after raft's state changes, while the
monitor_cb was polling every loop iteration. This led e.g. to bugs where
raft was assuming no longer being the leader while dqlite's state was not
properly reflecting that.

Fixes #541 , also please refer to that issue for the problem description. Issue observed was similar as in #355.
Relies on functionality introduced by canonical/raft#488.

@MathieuBordere
Copy link
Contributor Author

please test downstream

The state_cb is called immediately after raft's state changes, while the
monitor_cb was polling every loop iteration. This led e.g. to bugs where
raft was assuming no longer being the leader while dqlite's state was not
properly reflecting that.

Signed-off-by: Mathieu Borderé <[email protected]>
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.

Jepsen: assertion failure in vfs.c
1 participant