|
22 | 22 | import org.apache.flink.api.common.state.ListState;
|
23 | 23 | import org.apache.flink.api.common.state.ListStateDescriptor;
|
24 | 24 | import org.apache.flink.api.common.typeinfo.Types;
|
| 25 | +import org.apache.flink.configuration.CheckpointingOptions; |
25 | 26 | import org.apache.flink.configuration.Configuration;
|
26 | 27 | import org.apache.flink.configuration.StateRecoveryOptions;
|
27 | 28 | import org.apache.flink.core.execution.JobClient;
|
@@ -166,7 +167,10 @@ private long calculateExpectedResultBeforeSavepoint() {
|
166 | 167 |
|
167 | 168 | @NotNull
|
168 | 169 | private String runOriginalJob() throws Exception {
|
169 |
| - StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment(); |
| 170 | + Configuration conf = new Configuration(); |
| 171 | + // TODO: remove this after FLINK-32081 |
| 172 | + conf.set(CheckpointingOptions.FILE_MERGING_ENABLED, false); |
| 173 | + StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment(conf); |
170 | 174 | env.getCheckpointConfig()
|
171 | 175 | .setExternalizedCheckpointCleanup(
|
172 | 176 | CheckpointConfig.ExternalizedCheckpointCleanup.RETAIN_ON_CANCELLATION);
|
@@ -215,6 +219,7 @@ private void runUpgradedJob(String snapshotPath) throws Exception {
|
215 | 219 | StreamExecutionEnvironment env;
|
216 | 220 | Configuration conf = new Configuration();
|
217 | 221 | conf.set(StateRecoveryOptions.SAVEPOINT_PATH, snapshotPath);
|
| 222 | + conf.set(CheckpointingOptions.FILE_MERGING_ENABLED, false); |
218 | 223 | env = StreamExecutionEnvironment.getExecutionEnvironment(conf);
|
219 | 224 | env.setParallelism(PARALLELISM);
|
220 | 225 | env.addSource(new StringSource(allDataEmittedLatch))
|
|
0 commit comments