-
Notifications
You must be signed in to change notification settings - Fork 13.8k
[FLINK-12203] Refactor ResultPartitionManager to break tie with Task #8210
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
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 |
|---|---|---|
|
|
@@ -51,6 +51,7 @@ | |
| import org.apache.flink.runtime.io.network.NetworkEnvironment; | ||
| import org.apache.flink.runtime.io.network.netty.PartitionProducerStateChecker; | ||
| import org.apache.flink.runtime.io.network.partition.ResultPartitionConsumableNotifier; | ||
| import org.apache.flink.runtime.io.network.partition.ResultPartitionID; | ||
| import org.apache.flink.runtime.io.network.partition.consumer.SingleInputGate; | ||
| import org.apache.flink.runtime.jobgraph.IntermediateDataSetID; | ||
| import org.apache.flink.runtime.jobgraph.tasks.InputSplitProvider; | ||
|
|
@@ -649,11 +650,9 @@ public CompletableFuture<Acknowledge> updatePartitions( | |
| } | ||
|
|
||
| @Override | ||
| public void failPartition(ExecutionAttemptID executionAttemptID) { | ||
| log.info("Discarding the results produced by task execution {}.", executionAttemptID); | ||
|
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. I am not sure whether to retain the previous log for tracing.
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. I was thinking about it, the problem here is that previously it happened per task. Now, it gets a list of partitions without assumption that it is per task. JM will still log it in |
||
|
|
||
| public void releasePartitions(Collection<ResultPartitionID> partitionIds) { | ||
| try { | ||
| networkEnvironment.getResultPartitionManager().releasePartitionsProducedBy(executionAttemptID); | ||
| networkEnvironment.releasePartitions(partitionIds); | ||
| } catch (Throwable t) { | ||
| // TODO: Do we still need this catch branch? | ||
| onFatalError(t); | ||
|
|
||
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 might be better to put this log in the first line of this method.