tillrohrmann commented on a change in pull request #13564:
URL: https://github.com/apache/flink/pull/13564#discussion_r502519775
##########
File path:
flink-runtime/src/main/java/org/apache/flink/runtime/taskexecutor/slot/TaskSlotTableImpl.java
##########
@@ -200,6 +200,17 @@ public boolean isClosed() {
}
}
+ @Override
+ public Set<AllocationID> getActiveTaskAllocationIdsPerJob(JobID jobId) {
+ Iterator<TaskSlot<T>> taskSlotIterator = new
TaskSlotIterator(jobId, TaskSlotState.ACTIVE);
+ Set<AllocationID> allocationIds = new HashSet<>();
+ while (taskSlotIterator.hasNext()) {
+
allocationIds.add(taskSlotIterator.next().getAllocationId());
+ }
+
+ return allocationIds;
Review comment:
Yes, you are completely right. Forget about my comment. I overlooked
that we are only interested in the `AllocationIDs`.
----------------------------------------------------------------
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]