[ 
https://issues.apache.org/jira/browse/RATIS-2008?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ivan Andika updated RATIS-2008:
-------------------------------
    Description: 
During pre-vote, some follower reject the PRE_VOTE request from a candidate 
although the candidate has the same peer ID as the current leader. 
{code:java}
2024-01-18 13:44:50,123 [grpc-default-executor-100] INFO 
org.apache.ratis.server.impl.VoteContext: 
e46cc30b-13ca-4778-b856-e84b0677493d@group-059247EC8137-FOLLOWER: reject 
PRE_VOTE from c7e3fa47-df62-4883-8d6e-50c3b6a9b94c: this server is a follower 
and still has a valid leader c7e3fa47-df62-4883-8d6e-50c3b6a9b94c
{code}
It might be a good idea to addd another check so that if the candidate has the 
same peer ID as the follower's current recognized leader, we approve the 
PRE_VOTE request.

 

  was:
 

During pre-vote, some follower reject the PRE_VOTE request from a candidate 
although the candidate has the same peer ID as the current leader. 
{code:java}
2024-01-18 13:44:50,123 [grpc-default-executor-100] INFO 
org.apache.ratis.server.impl.VoteContext: 
e46cc30b-13ca-4778-b856-e84b0677493d@group-059247EC8137-FOLLOWER: reject 
PRE_VOTE from c7e3fa47-df62-4883-8d6e-50c3b6a9b94c: this server is a follower 
and still has a valid leader c7e3fa47-df62-4883-8d6e-50c3b6a9b94c
{code}
We can add another check so that if the candidate has the same peer ID as the 
follower's current recognized leader, we approve the PRE_VOTE request.

 


> Follower should recognize candidate if the candidate is the same peer as the 
> current recognized leader
> ------------------------------------------------------------------------------------------------------
>
>                 Key: RATIS-2008
>                 URL: https://issues.apache.org/jira/browse/RATIS-2008
>             Project: Ratis
>          Issue Type: Improvement
>            Reporter: Ivan Andika
>            Assignee: Ivan Andika
>            Priority: Major
>
> During pre-vote, some follower reject the PRE_VOTE request from a candidate 
> although the candidate has the same peer ID as the current leader. 
> {code:java}
> 2024-01-18 13:44:50,123 [grpc-default-executor-100] INFO 
> org.apache.ratis.server.impl.VoteContext: 
> e46cc30b-13ca-4778-b856-e84b0677493d@group-059247EC8137-FOLLOWER: reject 
> PRE_VOTE from c7e3fa47-df62-4883-8d6e-50c3b6a9b94c: this server is a follower 
> and still has a valid leader c7e3fa47-df62-4883-8d6e-50c3b6a9b94c
> {code}
> It might be a good idea to addd another check so that if the candidate has 
> the same peer ID as the follower's current recognized leader, we approve the 
> PRE_VOTE request.
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to