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

Refactor consistent query #491

Merged
merged 1 commit into from
Dec 20, 2024
Merged

Refactor consistent query #491

merged 1 commit into from
Dec 20, 2024

Conversation

kjnilsson
Copy link
Contributor

@kjnilsson kjnilsson commented Dec 20, 2024

Instead of each member maintaining a shared query_index updated by the heartbeat_rpc messages this commit changes the query_index to just maintain each member's local sequence that is only used when the member is a leader.

This reduces some complexity in the algorithm to possibly avoids certain bugs that could result from a follower retaining an old higher query index.

May fix #483

Instead of each member maintaining a shared query_index updated
by the heartbeat_rpc messages this commit changes the query_index
to just maintain each member's local sequence that is only used when
the member is a leader.

This reduces some complexity in the algorithm as possibly avoids
certain bugs.
@kjnilsson kjnilsson marked this pull request as ready for review December 20, 2024 14:27
@kjnilsson
Copy link
Contributor Author

Passes two runs of the jepsen test suite.

@kjnilsson kjnilsson added this to the 2.16.0 milestone Dec 20, 2024
@kjnilsson kjnilsson merged commit dce73f0 into main Dec 20, 2024
7 checks passed
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.

consistent query bug
1 participant