Skip to content

Commit 7e9c099

Browse files
committed
[hotfix] Try to stabilize the flaky integration tests
1 parent 0c36072 commit 7e9c099

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

flink-connector-jdbc-core/src/test/java/org/apache/flink/connector/jdbc/core/table/source/JdbcDynamicTableSourceITCase.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,11 @@ void beforeEach() throws SQLException {
133133
inputTable.insertIntoTableValues(conn, getTestData());
134134
}
135135
env = StreamExecutionEnvironment.getExecutionEnvironment();
136+
Configuration fixedDelayRestartCfg = new Configuration();
137+
fixedDelayRestartCfg.setString("restart-strategy", "fixed-delay");
138+
fixedDelayRestartCfg.setString("restart-strategy.fixed-delay.attempts", "8");
139+
fixedDelayRestartCfg.setString("restart-strategy.fixed-delay.delay", "1s");
140+
env.configure(fixedDelayRestartCfg);
136141
tEnv = StreamTableEnvironment.create(env);
137142
}
138143

0 commit comments

Comments
 (0)