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 jugde logic exist problem when send beat in raftcore #2810

Closed
horizonzy opened this issue May 15, 2020 · 0 comments
Closed

the jugde logic exist problem when send beat in raftcore #2810

horizonzy opened this issue May 15, 2020 · 0 comments

Comments

@horizonzy
Copy link
Collaborator

Issue Description

Type: bug report

Describe what happened (or what feature you want)

 public void sendBeat() throws IOException, InterruptedException {
            RaftPeer local = peers.local();
            if (local.state != RaftPeer.State.LEADER && !STANDALONE_MODE) {
                return;
            }
            if (Loggers.RAFT.isDebugEnabled()) {
                Loggers.RAFT.debug("[RAFT] send beat with {} keys.", datums.size());
            }
    ....................
}

if STANDALONE_MODE is true,it shoule return directly.

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 a pull request may close this issue.

1 participant