szetszwo commented on code in PR #1091: URL: https://github.com/apache/ratis/pull/1091#discussion_r1619906598
########## ratis-server/src/main/java/org/apache/ratis/server/impl/RaftServerImpl.java: ########## @@ -1853,6 +1853,7 @@ CompletableFuture<Message> applyLogToStateMachine(ReferenceCountedObject<LogEntr void notifyTruncatedLogEntry(LogEntryProto logEntry) { if (logEntry.hasStateMachineLogEntry()) { getTransactionManager().remove(TermIndex.valueOf(logEntry)); + Optional.ofNullable(getState()).ifPresent(s -> s.truncate(logEntry.getIndex())); Review Comment: Thanks for the info! The change looks good. -- 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