Github user GJL commented on a diff in the pull request:
https://github.com/apache/flink/pull/5944#discussion_r185163871
--- Diff:
flink-yarn/src/main/java/org/apache/flink/yarn/entrypoint/YarnJobClusterEntrypoint.java
---
@@ -131,6 +133,17 @@ protected JobGraph retrieveJobGraph(Configuration
configuration) throws FlinkExc
}
}
+ @Override
+ protected void
registerShutdownActions(CompletableFuture<ApplicationStatus> terminationFuture)
{
+ terminationFuture.whenComplete((status, throwable) ->
--- End diff --
`throwable` isn't used. If `terminationFuture` cannot be completed
exceptionally, `thenAccept` should be used.
---