[
https://issues.apache.org/jira/browse/FLINK-8449?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16339386#comment-16339386
]
ASF GitHub Bot commented on FLINK-8449:
---------------------------------------
Github user tillrohrmann commented on a diff in the pull request:
https://github.com/apache/flink/pull/5308#discussion_r163877367
--- Diff:
flink-runtime/src/test/java/org/apache/flink/runtime/jobmaster/JobManagerRunnerMockTest.java
---
@@ -250,19 +255,15 @@ public void testRegainLeadership() throws Exception {
private volatile boolean finishedByOther;
@Override
- public void jobFinished(JobResult result) {
+ public void
jobReachedGloballyTerminalState(ArchivedExecutionGraph executionGraph) {
checkArgument(!isJobFinished(), "job finished already");
checkArgument(!isJobFailed(), "job failed already");
- this.result = result;
- }
-
- @Override
- public void jobFailed(JobResult result) {
- checkArgument(!isJobFinished(), "job finished already");
- checkArgument(!isJobFailed(), "job failed already");
+ this.result = JobResult.createFrom(executionGraph);
- this.failedCause =
result.getSerializedThrowable().get();
+ if (!result.isSuccess()) {
--- End diff --
Good idea. I'll leave it like it is though, because this test will be
removed in one of my other PRs.
> Extend OnCompletionActions to receive AccessExecutionGraph
> ----------------------------------------------------------
>
> Key: FLINK-8449
> URL: https://issues.apache.org/jira/browse/FLINK-8449
> Project: Flink
> Issue Type: Improvement
> Components: Distributed Coordination
> Affects Versions: 1.5.0
> Reporter: Till Rohrmann
> Assignee: Till Rohrmann
> Priority: Major
> Labels: flip-6
> Fix For: 1.5.0
>
>
> The {{OnCompletionAction}} currently only receives the {{JobResult}} when the
> job terminates. For further archiving of the {{ArchivedExecutionGraph}}, we
> should change this to {{AccessExecutionGraph}}. The {{AccessExecutionGraph}}
> contains all the information to derive the {{JobResult}} and additionally the
> information needed for serving information about completed jobs.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)