tillrohrmann commented on a change in pull request #7662: [FLINK-10431]
Extraction of scheduling-related code from SlotPool into preliminary Scheduler
(rebased)
URL: https://github.com/apache/flink/pull/7662#discussion_r256859785
##########
File path:
flink-runtime/src/test/java/org/apache/flink/runtime/jobmaster/slotpool/SlotPoolSlotSharingTest.java
##########
@@ -72,8 +71,8 @@ public void testSingleQueuedSharedSlotScheduling() throws
Exception {
(SlotRequest slotRequest) ->
allocationIdFuture.complete(slotRequest.getAllocationId()));
LocalTaskManagerLocation taskManagerLocation = new
LocalTaskManagerLocation();
- final SlotPoolGateway slotPoolGateway =
slotPoolResource.getSlotPoolGateway();
-
slotPoolGateway.registerTaskManager(taskManagerLocation.getResourceID()).get();
+ final SlotPoolImpl slotPool = slotPoolResource.getSlotPool();
+ slotPoolResource.executeInMainThreadAndJoin(() ->
slotPool.registerTaskManager(taskManagerLocation.getResourceID()));
Review comment:
I think `executeInMainThreadAndJoin` is not 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