zhijiangW commented on a change in pull request #8646: [FLINK-12735][network] 
Make shuffle environment implementation independent with IOManager
URL: https://github.com/apache/flink/pull/8646#discussion_r294350470
 
 

 ##########
 File path: 
flink-runtime/src/main/java/org/apache/flink/runtime/io/network/partition/BoundedBlockingSubpartition.java
 ##########
 @@ -93,12 +92,8 @@
        /**
         * Common constructor.
         */
-       public BoundedBlockingSubpartition(
-                       int index,
-                       ResultPartition parent,
-                       Path filePath) throws IOException {
-
-               this(index, parent, MemoryMappedBuffers.create(filePath));
+       BoundedBlockingSubpartition(int index, ResultPartition parent) throws 
IOException {
+               this(index, parent, 
MemoryMappedBuffers.create(parent.createFileChannelPath()));
 
 Review comment:
   I could refactor `parent.createFileChannelPath()` into factory while 
creating subpartitions and pass the path in the constructor directly

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to