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



##########
File path: 
flink-runtime/src/main/java/org/apache/flink/runtime/jobmaster/slotpool/SchedulerImpl.java
##########
@@ -98,14 +101,15 @@ public SchedulerImpl(
                        "Scheduler is not initialized with proper main thread 
executor. " +
                                "Call to Scheduler.start(...) required.");
 
-               this.bulkSlotProvider = new 
BulkSlotProviderImpl(slotSelectionStrategy, slotPool);
+               this.slotRequestBulkChecker = 
PhysicalSlotRequestBulkCheckerImpl.fromSlotPool(slotPool, 
SystemClock.getInstance());
+               this.bulkSlotProvider = new 
BulkSlotProviderImpl(slotSelectionStrategy, slotPool, slotRequestBulkChecker);

Review comment:
       Alright, thanks for the idea. It required a bit more changes but it 
looks working. The change is the commit:
   `[hotfix] Do not mix BulkSlotProvider into SlotProvider/SchedulerImpl`

##########
File path: 
flink-runtime/src/main/java/org/apache/flink/runtime/jobmaster/slotpool/PhysicalSlotProviderImpl.java
##########
@@ -87,9 +86,12 @@
                        SlotRequestId slotRequestId,
                        ResourceProfile resourceProfile,
                        boolean willSlotBeOccupiedIndefinitely) {
-               return willSlotBeOccupiedIndefinitely ?
-                       slotPool.requestNewAllocatedSlot(slotRequestId, 
resourceProfile, null) :
-                       slotPool.requestNewAllocatedBatchSlot(slotRequestId, 
resourceProfile);
+               if (willSlotBeOccupiedIndefinitely) {
+                       return slotPool.requestNewAllocatedSlot(slotRequestId, 
resourceProfile, null);
+               } else {
+                       slotPool.disableBatchSlotRequestTimeoutCheck();

Review comment:
       true




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