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

 ##########
 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:
   I'm sorry for that, i'll correct it!

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