-
Notifications
You must be signed in to change notification settings - Fork 13.8k
[FLINK-29665][runtime] Support flexible subpartion range division #21162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
8bc54ab to
80e07f5
Compare
flink-runtime/src/main/java/org/apache/flink/runtime/executiongraph/SubpartitionIndexRange.java
Outdated
Show resolved
Hide resolved
flink-runtime/src/main/java/org/apache/flink/runtime/executiongraph/TaskInputInfo.java
Outdated
Show resolved
Hide resolved
flink-runtime/src/main/java/org/apache/flink/runtime/executiongraph/TaskInputInfo.java
Outdated
Show resolved
Hide resolved
flink-runtime/src/main/java/org/apache/flink/runtime/executiongraph/IntermediateResultInfo.java
Outdated
Show resolved
Hide resolved
flink-runtime/src/main/java/org/apache/flink/runtime/executiongraph/TaskInputInfo.java
Outdated
Show resolved
Hide resolved
...e/src/main/java/org/apache/flink/runtime/executiongraph/VertexInputInfoComputationUtils.java
Outdated
Show resolved
Hide resolved
flink-runtime/src/main/java/org/apache/flink/runtime/executiongraph/VertexInputInfoStore.java
Outdated
Show resolved
Hide resolved
flink-runtime/src/main/java/org/apache/flink/runtime/executiongraph/TaskInputInfo.java
Outdated
Show resolved
Hide resolved
...e/src/main/java/org/apache/flink/runtime/executiongraph/VertexInputInfoComputationUtils.java
Outdated
Show resolved
Hide resolved
...e/src/main/java/org/apache/flink/runtime/executiongraph/VertexInputInfoComputationUtils.java
Outdated
Show resolved
Hide resolved
dffff61 to
94c09a9
Compare
|
Thanks for review @zhuzhurk. I 've addressed all comments, please take a look. |
| return isDynamicGraph | ||
| ? intermediateResult.getPartitions()[partitionIndex].getNumberOfSubpartitions() | ||
| : IntermediateResultPartition.NUM_SUBPARTITIONS_UNKNOWN; | ||
| // Note that this method should only be called for dynamic graph |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Better to explain why, e.g. this method is used to compute which sub-partitions a consumer vertex should consume, however, for non-dynamic graph it is not needed, and the number of sub-partitions is not decided at this stage, due to the execution edge are not created.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added
zhuzhurk
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
5fde448 to
713f7af
Compare
What is the purpose of the change
Support flexible subpartion range division
Verifying this change
Add some tests
Does this pull request potentially affect one of the following parts:
@Public(Evolving): (no)Documentation