azagrebin commented on a change in pull request #9250: 
[FLINK-13371][coordination] Prevent leaks of blocking partitions 
URL: https://github.com/apache/flink/pull/9250#discussion_r309263882
 
 

 ##########
 File path: 
flink-runtime/src/test/java/org/apache/flink/runtime/taskexecutor/TaskExecutorPartitionLifecycleTest.java
 ##########
 @@ -190,33 +191,62 @@ public void 
testConnectionTerminationAfterExternalRelease() throws Exception {
        }
 
        @Test
-       public void testPartitionReleaseAfterDisconnect() throws Exception {
+       public void testBlockingPartitionReleaseAfterDisconnect() throws 
Exception {
                testPartitionRelease(
                        (jobId, partitionId, taskExecutorGateway) -> 
taskExecutorGateway.disconnectJobManager(jobId, new Exception("test")),
-                       true);
+                       true,
+                       ResultPartitionType.BLOCKING);
        }
 
        @Test
-       public void testPartitionReleaseAfterReleaseCall() throws Exception {
+       public void testPipelinedPartitionNotReleasedAfterDisconnect() throws 
Exception {
 
 Review comment:
   this is actually an interesting case for finished pipelined bounded w/o 
consumption attempt,
   looks like TM should also take the JM role and release them

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