zhuzhurk commented on a change in pull request #9663: 
[WIP][FLINK-12433][runtime] Implement DefaultScheduler stub
URL: https://github.com/apache/flink/pull/9663#discussion_r326489325
 
 

 ##########
 File path: 
flink-runtime/src/main/java/org/apache/flink/runtime/jobmaster/slotpool/SlotProvider.java
 ##########
 @@ -42,6 +42,23 @@
  */
 public interface SlotProvider {
 
+       /**
+        * Allocating slot with specific requirement.
+        *
+        * @param slotRequestId identifying the slot request
+        * @param scheduledUnit The task to allocate the slot for
+        * @param slotProfile profile of the requested slot
+        * @param allocationTimeout after which the allocation fails with a 
timeout exception
+        * @return The future of the allocation
+        */
+       default CompletableFuture<LogicalSlot> allocateSlot(
 
 Review comment:
   Seems this interface is only used by tests. Do we really need it or can we 
make the tests to invoke the underlying interface directly?

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


With regards,
Apache Git Services

Reply via email to