TisonKun commented on a change in pull request #7971: [FLINK-11897][tests] 
should wait all submitTask methods executed,befo…
URL: https://github.com/apache/flink/pull/7971#discussion_r265490610
 
 

 ##########
 File path: 
flink-runtime/src/test/java/org/apache/flink/runtime/executiongraph/InteractionsCountingTaskManagerGateway.java
 ##########
 @@ -60,4 +72,12 @@ int getSubmitTaskCount() {
        int getInteractionsCount() {
                return cancelTaskCount.get() + submitTaskCount.get();
        }
+
+       void waitAllTasksSubmitted(){
+               try{
+                       submitLatch.await();
+               }catch (InterruptedException e){
+                       Thread.currentThread().interrupt();
+               }
+       }
 
 Review comment:
   whitespace between braces and other symbol. 

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