azagrebin commented on a change in pull request #10197:
[FLINK-14503][coordination] Add partition report to heartbeat
URL: https://github.com/apache/flink/pull/10197#discussion_r347300894
##########
File path:
flink-runtime/src/main/java/org/apache/flink/runtime/io/network/partition/TaskExecutorPartitionTrackerImpl.java
##########
@@ -42,12 +42,12 @@ public
TaskExecutorPartitionTrackerImpl(ShuffleEnvironment<?, ?> shuffleEnvironm
}
@Override
- public void startTrackingPartition(JobID producingJobId,
ResultPartitionID resultPartitionId, IntermediateDataSetID
intermediateDataSetId) {
+ public void startTrackingPartition(JobID producingJobId,
ResultPartitionID resultPartitionId, IntermediateDataSetID
intermediateDataSetId, int numberOfPartitions) {
Preconditions.checkNotNull(producingJobId);
Preconditions.checkNotNull(resultPartitionId);
Preconditions.checkNotNull(intermediateDataSetId);
- startTrackingPartition(producingJobId, resultPartitionId, new
TaskExecutorPartitionInfo(intermediateDataSetId));
+ startTrackingPartition(producingJobId, resultPartitionId, new
TaskExecutorPartitionInfo(intermediateDataSetId, numberOfPartitions));
Review comment:
`Preconditions.ckeckArgument(numberOfPartitions > 0);`
----------------------------------------------------------------
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