You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ratis.apache.org by "Sammi Chen (Jira)" <ji...@apache.org> on 2021/11/02 09:42:00 UTC
[jira] [Created] (RATIS-1420) Improve the appendEntity with
inconsistency entities case
Sammi Chen created RATIS-1420:
---------------------------------
Summary: Improve the appendEntity with inconsistency entities case
Key: RATIS-1420
URL: https://issues.apache.org/jira/browse/RATIS-1420
Project: Ratis
Issue Type: Improvement
Reporter: Sammi Chen
Assignee: Sammi Chen
Here is the log. In inconsistency entities case, we can check both the snapshotIndex and lastCommitedIndex, return the bigger one, so that leader will sent the appendEntity with the right start index.
2021-11-02 10:15:33,670 [grpc-default-executor-37] INFO org.apache.ratis.server.RaftServer$Division: 0a16a9a7-1af0-4fbe-9b32-9e67df46b4c7@group-05CE30769594: Failed appendEntries: the first entry (index 0) is already in snapshot (snapshot index: 840070)
2021-11-02 10:15:33,670 [grpc-default-executor-37] INFO org.apache.ratis.server.RaftServer$Division: 0a16a9a7-1af0-4fbe-9b32-9e67df46b4c7@group-05CE30769594: inconsistency entries. Reply:e0dbea84-c5b0-4606-b8c5-80feaee211e6<-0a16a9a7-1af0-4fbe-9b32-9e67df46b4c7#1:FAIL-t1380,INCONSISTENCY,nextIndex=840071,followerCommit=843933
--
This message was sent by Atlassian Jira
(v8.3.4#803005)