GJL commented on a change in pull request #9268: [FLINK-13452] Ensure to fail
global when exception happens during reseting tasks of regions
URL: https://github.com/apache/flink/pull/9268#discussion_r309705575
##########
File path:
flink-runtime/src/test/java/org/apache/flink/runtime/executiongraph/AdaptedRestartPipelinedRegionStrategyNGFailoverTest.java
##########
@@ -376,12 +410,13 @@ private JobGraph createBatchJobGraph() {
}
private ExecutionGraph createExecutionGraph(final JobGraph jobGraph)
throws Exception {
- return createExecutionGraph(jobGraph, new
FixedDelayRestartStrategy(10, 0));
+ return createExecutionGraph(jobGraph, new
FixedDelayRestartStrategy(10, 0), false);
}
private ExecutionGraph createExecutionGraph(
final JobGraph jobGraph,
- final RestartStrategy restartStrategy) throws Exception
{
+ final RestartStrategy restartStrategy,
+ final boolean failOnRecoverCheckpoint) throws Exception
{
Review comment:
For unit testing the new behavior (i.e., `failGlobal` is invoked if an
exception occurs while restarting), wouldn't it be enough to implement a
`RestartStrategy` that returns an exceptionally completed future? I think it
would be good enough because the exception doesn't have to be necessarily
thrown while restoring checkpoints – in practice also an OOM can be thrown.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services