zhijiangW commented on a change in pull request #8557: [FLINK-12544][network] 
Fix the deadlock while releasing memory triggered by multiple threads in 
SpillableSubpartition
URL: https://github.com/apache/flink/pull/8557#discussion_r288655517
 
 

 ##########
 File path: 
flink-runtime/src/test/java/org/apache/flink/runtime/io/network/partition/SpillableSubpartitionTest.java
 ##########
 @@ -161,6 +173,72 @@ public Void call() throws Exception {
                blockingFinish.get();
        }
 
+       /**
+        * Tests a fix for FLINK-12544.
+        *
+        * @see <a 
href="https://issues.apache.org/jira/browse/FLINK-12544";>FLINK-12544</a>
+        */
+       @Test
+       public void testConcurrentRequestAndReleaseMemory() throws Exception {
 
 Review comment:
   Yes, it could be failing every time after reverting my changes, because I 
control the logic sequence strictly.

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