szetszwo commented on code in PR #924:
URL: https://github.com/apache/ratis/pull/924#discussion_r1333555713
##########
ratis-server/src/main/java/org/apache/ratis/server/raftlog/segmented/SegmentedRaftLog.java:
##########
@@ -382,26 +385,29 @@ protected CompletableFuture<Long>
appendEntryImpl(LogEntryProto entry) {
final Timekeeper.Context appendEntryTimerContext =
getRaftLogMetrics().startAppendEntryTimer();
validateLogEntry(entry);
final LogSegment currentOpenSegment = cache.getOpenSegment();
+ boolean rollOpenSegment = false;
Review Comment:
For `rollOpenSegment`, we will close the open segement so it increases the
count. For `addOpenSegment`, nothing will change as you mentioned.
--
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]