[
https://issues.apache.org/jira/browse/RATIS-1403?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17416369#comment-17416369
]
Tsz-wo Sze commented on RATIS-1403:
-----------------------------------
According to the RAFT algorithm, the leader should step down when it sees a
higher term. In requestVote(..), the leader recognizes a candidate only if the
candidate has a higher term. Therefore, the leader should change to follower
even if it will reject the vote from the candidate.
> should not change state when request is rejected
> ------------------------------------------------
>
> Key: RATIS-1403
> URL: https://issues.apache.org/jira/browse/RATIS-1403
> Project: Ratis
> Issue Type: Bug
> Reporter: Jackson Yao
> Assignee: Jackson Yao
> Priority: Major
> Attachments: 1.txt
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> it is found that , a leader receive a vote request and reject it , but it
> changes its state after the rejection.
> when a leader/follower receives a vote request, if the request is reject ,
> the leader/follower should not change its state, because that is an invalid
> request.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)