zhijiangW commented on a change in pull request #7186: [FLINK-10941] Keep slots 
which contain unconsumed result partitions
URL: https://github.com/apache/flink/pull/7186#discussion_r238986485
 
 

 ##########
 File path: 
flink-runtime/src/main/java/org/apache/flink/runtime/resourcemanager/slotmanager/SlotManager.java
 ##########
 @@ -902,6 +902,15 @@ private void checkTaskManagerTimeouts() {
                        // first retrieve the timed out TaskManagers
                        for (TaskManagerRegistration taskManagerRegistration : 
taskManagerRegistrations.values()) {
                                if (currentTime - 
taskManagerRegistration.getIdleSince() >= taskManagerTimeout.toMilliseconds()) {
+                                       // checking whether TaskManagers can be 
safely removed
 
 Review comment:
   Maybe the task executor can bring the released information as payloads 
during heartbeat, then the task executor may be released earlier not waiting 
for next timeout period. For example the timeout is 5min, when 5.1 min all the 
partitions are released in executor, but it has to be released until 10min.
   
   Certainly it could be a further improvement not covered in this PR.

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


With regards,
Apache Git Services

Reply via email to