Sxnan commented on code in PR #19653: URL: https://github.com/apache/flink/pull/19653#discussion_r889923379
########## flink-runtime/src/main/java/org/apache/flink/runtime/io/network/partition/JobMasterPartitionTrackerImpl.java: ########## @@ -120,6 +125,26 @@ public Collection<ResultPartitionDeploymentDescriptor> getAllTrackedPartitions() return partitionInfos.values().stream().map(PartitionInfo::getMetaInfo).collect(toList()); } + @Override + public void connectToResourceManager(ResourceManagerGateway resourceManagerGateway) { + this.resourceManagerGateway = resourceManagerGateway; + } + + @Override + public List<ShuffleDescriptor> getClusterPartitionShuffleDescriptors( + IntermediateDataSetID intermediateDataSetID) { + Preconditions.checkNotNull( + resourceManagerGateway, "JobMaster is not connected to ResourceManager"); + try { + return this.resourceManagerGateway Review Comment: A cache of the shuffle descriptors of cluster partitions is added. [4bfe582](https://github.com/apache/flink/pull/19653/commits/4bfe582b1f8d8c60bb41663e93699c988ac66ed3) -- 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. To unsubscribe, e-mail: issues-unsubscr...@flink.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org