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 leader selection error #1148

Merged
merged 1 commit into from
Aug 17, 2021
Merged

Conversation

zhangchiqing
Copy link
Member

No description provided.

Copy link
Contributor

@huitseeker huitseeker left a comment

Choose a reason for hiding this comment

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

Nice catch!

@@ -23,6 +23,7 @@ func SelectionForCluster(cluster protocol.Cluster, epoch protocol.Epoch) (*Leade
identities := cluster.Members()
seed, err := epoch.Seed(indices.ProtocolCollectorClusterLeaderSelection(cluster.Index())...)
if err != nil {
return nil, fmt.Errorf("could not get leader selection seed for cluster (index: %v) at epoch: %v: %w", cluster.Index(), counter, err)
Copy link
Contributor

Choose a reason for hiding this comment

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

Does it make sense to continue at all here?

Copy link
Member

Choose a reason for hiding this comment

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

I don't think so. An error here indicates a critical problem with the epoch object we receive as argument

@zhangchiqing
Copy link
Member Author

bors merge

bors bot added a commit that referenced this pull request Aug 17, 2021
1148: Fix leader selection error r=zhangchiqing a=zhangchiqing



Co-authored-by: Leo Zhang (zhangchiqing) <zhangchiqing@gmail.com>
@bors
Copy link
Contributor

bors bot commented Aug 17, 2021

Timed out.

@zhangchiqing
Copy link
Member Author

bors merge

bors bot added a commit that referenced this pull request Aug 17, 2021
1148: Fix leader selection error r=zhangchiqing a=zhangchiqing



Co-authored-by: Leo Zhang (zhangchiqing) <zhangchiqing@gmail.com>
@bors
Copy link
Contributor

bors bot commented Aug 17, 2021

Timed out.

@zhangchiqing zhangchiqing merged commit 4a0c10d into v0.20 Aug 17, 2021
@zhangchiqing zhangchiqing deleted the leo/0.20-fix-leader-selection-error branch August 17, 2021 22:21
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.

None yet

3 participants