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

fix: do not pick failed cluster nodes while refreshing topology #660

Merged
merged 1 commit into from
Nov 2, 2024

Conversation

rueian
Copy link
Collaborator

@rueian rueian commented Nov 2, 2024

Previously, rueidis may pick a failed node as the primary node of a shard, especially if the failed node doesn't come back online. This PR skips those failed nodes and only picks nodes labeled as healthy as primaries.

Related to #658 and #384 (comment)

@rueian rueian marked this pull request as ready for review November 2, 2024 01:54
@rueian rueian merged commit 0c8627d into main Nov 2, 2024
54 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.

1 participant