Skip to content

Commit

Permalink
[flink] Specify restart strategy for SinkSavepointITCase (#3121)
Browse files Browse the repository at this point in the history
  • Loading branch information
tsreaper authored Mar 29, 2024
1 parent 0d91a85 commit efbf547
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import org.apache.flink.api.common.JobStatus;
import org.apache.flink.configuration.CheckpointingOptions;
import org.apache.flink.configuration.Configuration;
import org.apache.flink.configuration.RestartStrategyOptions;
import org.apache.flink.configuration.StateBackendOptions;
import org.apache.flink.core.execution.JobClient;
import org.apache.flink.core.execution.SavepointFormatType;
Expand Down Expand Up @@ -149,6 +150,19 @@ private JobClient runRecoverFromSavepointJob(String failingPath, String savepoin
tEnv.getConfig()
.getConfiguration()
.set(ExecutionConfigOptions.TABLE_EXEC_RESOURCE_DEFAULT_PARALLELISM, 1);
tEnv.getConfig()
.getConfiguration()
.set(RestartStrategyOptions.RESTART_STRATEGY, "fixed-delay");
tEnv.getConfig()
.getConfiguration()
.set(
RestartStrategyOptions.RESTART_STRATEGY_FIXED_DELAY_ATTEMPTS,
Integer.MAX_VALUE);
tEnv.getConfig()
.getConfiguration()
.set(
RestartStrategyOptions.RESTART_STRATEGY_FIXED_DELAY_DELAY,
Duration.ofSeconds(1));

String createCatalogSql =
String.join(
Expand Down

0 comments on commit efbf547

Please sign in to comment.