reswqa commented on code in PR #20371:
URL: https://github.com/apache/flink/pull/20371#discussion_r931106688


##########
flink-runtime/src/main/java/org/apache/flink/runtime/io/network/partition/hybrid/HsFileDataIndexImpl.java:
##########
@@ -83,6 +83,14 @@ public void markBufferReadable(int subpartitionId, int 
bufferIndex) {
         }
     }
 
+    @Override
+    public void cleanUp() {
+        synchronized (lock) {
+            
subpartitionFirstBufferIndexInternalRegions.forEach(TreeMap::clear);
+            subpartitionFirstBufferIndexInternalRegions.clear();

Review Comment:
   Yes, I just want it to be recycled by GC earlier, but it should be of little 
significance here. I removed this part of the code.



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