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



##########
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:
       This is a side effect related to the previous comment. 
`PhysicalSlotProviderImpl` is always created atm and we can break the legacy 
setup if we do it in the constructor. This should become irrelevant once we 
remove the legacy code.




----------------------------------------------------------------
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:
[email protected]


Reply via email to