Zakelly commented on code in PR #24513:
URL: https://github.com/apache/flink/pull/24513#discussion_r1533201932


##########
flink-runtime/src/main/java/org/apache/flink/runtime/state/filemerging/SegmentFileStateHandle.java:
##########
@@ -62,19 +77,58 @@ public class SegmentFileStateHandle implements 
StreamStateHandle {
      * @param scope The state's scope, whether it is exclusive or shared.
      */
     public SegmentFileStateHandle(
-            Path filePath, long startPos, long stateSize, 
CheckpointedStateScope scope) {
+            Path directoryPath,
+            Path filePath,
+            long startPos,
+            long stateSize,
+            CheckpointedStateScope scope) {
         this.filePath = filePath;
         this.stateSize = stateSize;
         this.startPos = startPos;
         this.scope = scope;
+        this.directoryStateHandle =
+                DirectoryStreamStateHandle.forPathWithSize(
+                        new File(directoryPath.getPath()).toPath());

Review Comment:
   Will `forPathWithSize` be inefficiency?



-- 
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...@flink.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to