azagrebin commented on a change in pull request #12375:
URL: https://github.com/apache/flink/pull/12375#discussion_r435232158



##########
File path: 
flink-runtime/src/main/java/org/apache/flink/runtime/jobmaster/slotpool/SlotProvider.java
##########
@@ -91,6 +92,20 @@
                        allocationTimeout);
        }
 
+       /**
+        * Allocates a bulk of physical slots. The allocation will be completed
+        * normally only when all the requests are fulfilled.
+        *
+        * @param physicalSlotRequests requests for physical slots
+        * @param timeout indicating how long it is accepted that the slot 
requests can be unfulfillable
+        * @return future of the results of slot requests
+        */
+       default CompletableFuture<Collection<PhysicalSlotRequest.Result>> 
allocatePhysicalSlots(

Review comment:
       I think having default method is fine. It is more related to making 
`OneSlotPerExecutionSlotAllocator` depending only on `BulkSlotProvider `.




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


Reply via email to