azagrebin commented on a change in pull request #8778: 
[FLINK-12615][coordination] Track partitions on JM
URL: https://github.com/apache/flink/pull/8778#discussion_r295709992
 
 

 ##########
 File path: 
flink-runtime/src/main/java/org/apache/flink/runtime/taskexecutor/partition/PartitionTable.java
 ##########
 @@ -31,25 +30,25 @@
 /**
  * Thread-safe Utility for tracking partitions.
  */
-class PartitionTable {
+class PartitionTable<K> {
 
-       private final Map<JobID, Set<ResultPartitionID>> 
trackedPartitionsPerJob = new ConcurrentHashMap<>(8);
+       private final Map<K, Set<ResultPartitionID>> trackedPartitionsPerJob = 
new ConcurrentHashMap<>(8);
 
        /**
         * Returns whether any partitions are being tracked for the given job.
         */
-       boolean hasTrackedPartitions(JobID jobId) {
-               return trackedPartitionsPerJob.containsKey(jobId);
+       boolean hasTrackedPartitions(K key) {
 
 Review comment:
   comments outdated

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