133tosakarin commented on code in PR #1174:
URL: https://github.com/apache/ratis/pull/1174#discussion_r1835276643


##########
ratis-server/src/main/java/org/apache/ratis/server/raftlog/segmented/SegmentedRaftLogCache.java:
##########
@@ -383,6 +383,7 @@ TruncationSegments purge(long index) {
         list.forEach(LogSegment::evictCache);
         List<SegmentFileInfo> toDelete = 
list.stream().map(SegmentFileInfo::newClosedSegmentFileInfo)
             .collect(Collectors.toList());
+        LOG.info("final toDelete: {}", toDelete);

Review Comment:
   I have reverted this line



##########
ratis-server/src/main/java/org/apache/ratis/server/raftlog/segmented/SegmentedRaftLogCache.java:
##########
@@ -359,7 +359,7 @@ TruncationSegments purge(long index) {
       try (AutoCloseableLock writeLock = writeLock()) {
         int segmentIndex = binarySearch(index);
         List<LogSegment> list = new LinkedList<>();
-
+        LOG.info("purgeLog are: {}", segments);

Review Comment:
   I have reverted this line



-- 
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