chungen0126 commented on code in PR #1130: URL: https://github.com/apache/ratis/pull/1130#discussion_r1704910453
########## ratis-server/src/main/java/org/apache/ratis/server/raftlog/RaftLogBase.java: ########## @@ -230,6 +230,9 @@ private long appendMetadataImpl(long term, long newCommitIndex) { final long nextIndex; try(AutoCloseableLock writeLock = writeLock()) { nextIndex = getNextIndex(); + if (nextIndex - 1 != newCommitIndex) { + return INVALID_LOG_INDEX; + } Review Comment: Got it, updated. -- 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: issues-unsubscr...@ratis.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org