zhuzhurk commented on a change in pull request #16314:
URL: https://github.com/apache/flink/pull/16314#discussion_r672897201
##########
File path:
flink-runtime/src/main/java/org/apache/flink/runtime/executiongraph/IntermediateResult.java
##########
@@ -171,6 +180,21 @@ boolean areAllPartitionsFinished() {
return numberOfRunningProducers.get() == 0;
}
+ public MaybeOffloaded<ShuffleDescriptor[]> getCachedShuffleDescriptors(
+ ConsumedPartitionGroup consumedPartitionGroup) {
+ return shuffleDescriptorCache.get(consumedPartitionGroup);
+ }
+
+ public void cacheShuffleDescriptors(
+ ConsumedPartitionGroup consumedPartitionGroup,
+ MaybeOffloaded<ShuffleDescriptor[]> shuffleDescriptors) {
+ this.shuffleDescriptorCache.put(consumedPartitionGroup,
shuffleDescriptors);
+ }
+
+ public void notifyPartitionStatusChanged() {
+ this.shuffleDescriptorCache.clear();
Review comment:
More discussions se FLINK-23218
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]