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

The condition checks that the default value of leaderId in RaftNode is 0, not -1. #50

Open
liang636600 opened this issue Oct 14, 2024 · 0 comments

Comments

@liang636600
Copy link

Hi, @wenweihu86 , I think there is an issue with the condition here. It should be raftNode.getLeaderId() != 0, because the default value of the leaderId field in RaftNode is 0, and throughout the entire project, the leaderId field has never been set to -1.

handleAERequestWithConflicts

Only the leaderId field in the ExampleServiceImpl class has a default value of -1.

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

No branches or pull requests

1 participant