Skip to content

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

Open
@liang636600

Description

@liang636600

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions