Kaijie Chen created RATIS-1817:
----------------------------------
Summary: Do not send StartLeaderElection when leaderLastEntry is
null
Key: RATIS-1817
URL: https://issues.apache.org/jira/browse/RATIS-1817
Project: Ratis
Issue Type: Sub-task
Reporter: Kaijie Chen
Assignee: Kaijie Chen
We should not send StartLeaderElection to the transferee when
{{leaderLastEntry}} is null.
Because {{leaderLastEntry}} is expected to be non-null inĀ
{{RaftServerImpl#startLeaderElection}}:
{code:java}
if (leaderLastEntry == null) {
LOG.warn("{}: receive null leaderLastEntry which is unexpected",
getMemberId());
return ServerProtoUtils.toStartLeaderElectionReplyProto(leaderId,
getMemberId(), false);
}
{code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)