tillrohrmann commented on a change in pull request #8242: [FLINK-6227][network] 
Introduce the PartitionException for downstream task failure
URL: https://github.com/apache/flink/pull/8242#discussion_r285952622
 
 

 ##########
 File path: 
flink-runtime/src/test/java/org/apache/flink/runtime/io/network/netty/ClientTransportErrorHandlingTest.java
 ##########
 @@ -134,12 +133,10 @@ public Void answer(InvocationOnMock invocation) throws 
Throwable {
                }).when(rich[1]).onError(isA(LocalTransportException.class));
 
                // First request is successful
-               ChannelFuture f = requestClient.requestSubpartition(new 
ResultPartitionID(), 0, rich[0], 0);
-               assertTrue(f.await().isSuccess());
+               requestClient.requestSubpartition(new ResultPartitionID(), 0, 
rich[0], 0);
 
                // Second request is *not* successful
-               f = requestClient.requestSubpartition(new ResultPartitionID(), 
0, rich[1], 0);
-               assertFalse(f.await().isSuccess());
 
 Review comment:
   What about possible race conditions which might be introduced by not waiting 
on the completion of the request?

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