tillrohrmann commented on a change in pull request #7568: [FLINK-11417] Make 
access to ExecutionGraph single threaded from JobMaster main thread
URL: https://github.com/apache/flink/pull/7568#discussion_r252248057
 
 

 ##########
 File path: 
flink-runtime/src/test/java/org/apache/flink/runtime/executiongraph/ExecutionGraphRestartTest.java
 ##########
 @@ -160,27 +177,28 @@ public void testCancelWhileRestarting() throws Exception 
{
                Instance instance = executionGraphInstanceTuple.f1;
 
                // Kill the instance and wait for the job to restart
-               instance.markDead();
+               testMainThread.execute(instance::markDead);
 
                Deadline deadline = TestingUtils.TESTING_DURATION().fromNow();
 
                while (deadline.hasTimeLeft() &&
-                               executionGraph.getState() != 
JobStatus.RESTARTING) {
+                               testMainThread.execute(() -> 
executionGraph.getState() != JobStatus.RESTARTING)) {
 
                        Thread.sleep(100);
                }
 
 Review comment:
   This waiting loop should no longer be needed.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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