-
Notifications
You must be signed in to change notification settings - Fork 13.8k
[FLINK-12890] Add partition lifecycle related Shuffle API #8789
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
Changes from all commits
f8a58ad
82b9e2c
d33753f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -30,6 +30,7 @@ | |
| import org.apache.flink.runtime.shuffle.PartitionDescriptor; | ||
| import org.apache.flink.runtime.shuffle.ShuffleDescriptor; | ||
| import org.apache.flink.runtime.shuffle.UnknownShuffleDescriptor; | ||
| import org.apache.flink.runtime.util.NettyShuffleDescriptorBuilder; | ||
| import org.apache.flink.util.TestLogger; | ||
|
|
||
| import org.junit.Test; | ||
|
|
@@ -109,7 +110,7 @@ public void testReleasedOnConsumptionFlag() { | |
| for (ResultPartitionType partitionType : ResultPartitionType.values()) { | ||
| ResultPartitionDeploymentDescriptor partitionDescriptor = new ResultPartitionDeploymentDescriptor( | ||
| new PartitionDescriptor(resultId, partitionId, partitionType, numberOfSubpartitions, connectionIndex), | ||
| ResultPartitionID::new, | ||
| NettyShuffleDescriptorBuilder.newBuilder().buildLocal(), | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. it might be a separate hotfix commit.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The target change is not possible without this small change.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yes, I misunderstood before. |
||
| 1, | ||
| true | ||
| ); | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -24,6 +24,7 @@ | |
| import org.apache.flink.runtime.jobgraph.IntermediateDataSetID; | ||
| import org.apache.flink.runtime.jobgraph.IntermediateResultPartitionID; | ||
| import org.apache.flink.runtime.shuffle.PartitionDescriptor; | ||
| import org.apache.flink.runtime.util.NettyShuffleDescriptorBuilder; | ||
| import org.apache.flink.util.TestLogger; | ||
|
|
||
| import org.junit.Test; | ||
|
|
@@ -64,7 +65,7 @@ private static void testForceConsumptionOnRelease(boolean forceConsumptionOnRele | |
| ResultPartitionType.BLOCKING, | ||
| 1, | ||
| 0), | ||
| ResultPartitionID::new, | ||
| NettyShuffleDescriptorBuilder.newBuilder().buildLocal(), | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ditto |
||
| 1, | ||
| true | ||
| ); | ||
|
|
||
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.
It has the same information with above
Returns whether to release the partition after having been fully consumed once., so might be removed.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.
I wanted to keep jdoc format consistent.