gaoyunhaii commented on a change in pull request #10736: [FLINK-15010][Network] 
Add shutdown hook to ensure cleanup netty shuffle directories
URL: https://github.com/apache/flink/pull/10736#discussion_r368872499
 
 

 ##########
 File path: 
flink-runtime/src/main/java/org/apache/flink/runtime/io/disk/FileChannelManagerImpl.java
 ##########
 @@ -51,12 +54,27 @@
        /** The number of the next path to use. */
        private volatile int nextPath;
 
+       /** Prefix of the temporary directories to create */
+       private final String prefix;
+
+       /** Flag to signify that the file channel manager has been shut down 
already. */
+       private final AtomicBoolean isShutdown = new AtomicBoolean();
 
 Review comment:
   I have added the comments.

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to