sashapolo commented on code in PR #7880:
URL: https://github.com/apache/ignite-3/pull/7880#discussion_r3020215847


##########
modules/raft/src/main/java/org/apache/ignite/internal/raft/storage/segstore/RaftLogCheckpointer.java:
##########
@@ -62,14 +63,18 @@ class RaftLogCheckpointer {
 
     private final FailureProcessor failureProcessor;
 
+    private final LongConsumer beforeIndexFileCreated;
+
     RaftLogCheckpointer(
             String nodeName,
             IndexFileManager indexFileManager,
             FailureProcessor failureProcessor,
-            int maxQueueSize
+            int maxQueueSize,
+            LongConsumer beforeIndexFileCreated

Review Comment:
   This closure is needed to notify the GC that an index file is going to be 
saved on disk. I don't like the current approach much either, do you have any 
other suggestions? 



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