tillrohrmann commented on a change in pull request #9072: [FLINK-11630] Wait 
for the termination of all running Tasks when shutting down TaskExecutor
URL: https://github.com/apache/flink/pull/9072#discussion_r313898605
 
 

 ##########
 File path: 
flink-runtime/src/main/java/org/apache/flink/runtime/taskexecutor/TaskExecutor.java
 ##########
 @@ -1826,4 +1838,30 @@ public SlotReport retrievePayload(ResourceID 
resourceID) {
                        return taskSlotTable.createSlotReport(getResourceID());
                }
        }
+
+       private static class TaskCompletionTracker {
+               private final Map<ExecutionAttemptID, Task> incompleteTasks;
+
+               private TaskCompletionTracker() {
+                       incompleteTasks = new ConcurrentHashMap<>(8);
 
 Review comment:
   Why do we need a `ConcurrentHashMap`? Where does the concurrency come from?

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


With regards,
Apache Git Services

Reply via email to