chungen0126 opened a new pull request, #1130:
URL: https://github.com/apache/ratis/pull/1130

   ## What changes were proposed in this pull request?
   
   Now, RaftLog appends a metadata entry with the lastCommitIndex and checks 
whether the entry at the lastCommitIndex is neither a metadata entry nor an 
entry with a smaller commit index.
   
   However, RaftLog doesn't always log metadata entries in order. Sometimes, it 
misses some commit indexes. For example:
   
   STATEMACHINELOGENTRY(1, 1)
   
   STATEMACHINELOGENTRY(1, 2)
   METADATAENTRY(commitIndex: 1)
   If a METADATAENTRY is missed and the lastCommitIndex is a metadata entry, 
RaftLog won't append it.
   
   ## What is the link to the Apache JIRA
   
   [RATIS-2134](https://issues.apache.org/jira/projects/RATIS/issues/RATIS-2134)
   
   ## How was this patch tested?
   
   CI:
   https://github.com/chungen0126/ratis/actions/runs/10233933768
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to