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

Fixes to ra_leaderboard module #407

Merged
merged 1 commit into from
Jan 12, 2024
Merged

Fixes to ra_leaderboard module #407

merged 1 commit into from
Jan 12, 2024

Conversation

kjnilsson
Copy link
Contributor

@kjnilsson kjnilsson commented Jan 5, 2024

Ensure that the members are updated when the membership
is modifiied.

Always delete leaderboard record in ra server terminate callback
to favour accuracy of leadership information over availability.

The idea is that when a record is not found in the leaderboard
the caller falls back to some other, potentially slower, means
of leader discovery.

Ensure that the members are updated when the membership
is modifiied.

Always delete leaderboard record in ra server terminate callback
to favour accuracy of leadership information over availability.

The idea is that when a record is not found in the leaderboard
the caller falls back to some other, potentially slower, means
of leader discovery.
@kjnilsson kjnilsson changed the title wip Fixes to ra_leaderboard module Jan 8, 2024
@kjnilsson kjnilsson marked this pull request as ready for review January 8, 2024 11:02
@kjnilsson kjnilsson requested review from dumbbell and removed request for dumbbell January 8, 2024 20:11
Copy link
Member

@dumbbell dumbbell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test of rabbitmq/khepri#240 (to use ra_leaderboard:lookup_members/1) works with this patch!

It failed with Ra 2.7.1.

@dumbbell dumbbell added the bug label Jan 12, 2024
@kjnilsson kjnilsson merged commit 092ec87 into main Jan 12, 2024
7 checks passed
@kjnilsson
Copy link
Contributor Author

The test of rabbitmq/khepri#240 (to use ra_leaderboard:lookup_members/1) works with this patch!

It failed with Ra 2.7.1.

nice, thanks for testing, I'll release a new Ra patch

@dumbbell dumbbell deleted the ra-leaderboard-fixes branch January 12, 2024 09:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants