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_r250708725
##########
File path:
flink-runtime/src/test/java/org/apache/flink/runtime/executiongraph/ExecutionGraphCoLocationRestartTest.java
##########
@@ -72,28 +75,40 @@ public void testConstraintsAfterRestart() throws Exception
{
groupVertex,
groupVertex2);
+ eg.start(testMainThreadUtil.getMainThreadExecutor());
- // enable the queued scheduling for the slot pool
- eg.setQueuedSchedulingAllowed(true);
-
-
- assertEquals(JobStatus.CREATED, eg.getState());
+ Predicate<Execution> isDeploying =
ExecutionGraphTestUtils.isInExecutionState(ExecutionState.DEPLOYING);
+ testMainThreadUtil.execute(() -> {
+ // enable the queued scheduling for the slot pool
+ eg.setQueuedSchedulingAllowed(true);
Review comment:
this method should be safe to call right after we created the EG
----------------------------------------------------------------
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