Skip to content

Conversation

MozirDmitriy
Copy link

Prevent panics during leader selection by returning errors when no eligible leaders are available. Previously, modulo operations used the length of leader lists without emptiness checks, risking division-by-zero if quorum filters produced zero leaders or configs resulted in empty leader sets. This aligns with the Membership trait’s error-based contract and ensures robust behavior under edge conditions.

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