tillrohrmann commented on a change in pull request #6898: [FLINK-10431] Extraction of scheduling-related code from SlotPool into preliminary Scheduler URL: https://github.com/apache/flink/pull/6898#discussion_r228100910
########## File path: flink-runtime/src/main/java/org/apache/flink/runtime/jobmaster/slotpool/SlotPool.java ########## @@ -324,78 +297,98 @@ public void disconnectResourceManager() { boolean allowQueuedScheduling, Time allocationTimeout) { - log.debug("Received slot request [{}] for task: {}", slotRequestId, task.getTaskToExecute()); - - final SlotSharingGroupId slotSharingGroupId = task.getSlotSharingGroupId(); - - if (slotSharingGroupId != null) { - // allocate slot with slot sharing - final SlotSharingManager multiTaskSlotManager = slotSharingManagers.computeIfAbsent( - slotSharingGroupId, - id -> new SlotSharingManager( - id, - this, - providerAndOwner)); - - final SlotSharingManager.MultiTaskSlotLocality multiTaskSlotLocality; - - try { - if (task.getCoLocationConstraint() != null) { - multiTaskSlotLocality = allocateCoLocatedMultiTaskSlot( - task.getCoLocationConstraint(), - multiTaskSlotManager, - slotProfile, - allowQueuedScheduling, - allocationTimeout); + return CompletableFuture.completedFuture(null).thenComposeAsync((i) -> { Review comment: Stefan and me had an offline discussion and we concluded to remove now the porting scaffolds because they are no longer needed. The `Scheduler` should now be responsible for the `LogicalSlot` allocation. ---------------------------------------------------------------- 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: us...@infra.apache.org With regards, Apache Git Services