Skip to content

Commit

Permalink
[hotfix][tests] Explicitly disable changelog in migration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rkhachatryan committed Feb 16, 2022
1 parent 20e03f4 commit 369088f
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ public void testSavepointRestore() throws Exception {
default:
throw new UnsupportedOperationException();
}
env.enableChangelogStateBackend(false);

env.enableCheckpointing(500);
env.setParallelism(4);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ public void testSavepoint() throws Exception {
env.enableCheckpointing(500);
env.setParallelism(parallelism);
env.setMaxParallelism(parallelism);
env.enableChangelogStateBackend(false);

SourceFunction<Tuple2<Long, Long>> nonParallelSource;
SourceFunction<Tuple2<Long, Long>> parallelSource;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ public void testSavepoint() throws Exception {
default:
throw new UnsupportedOperationException();
}
env.enableChangelogStateBackend(false);

env.enableCheckpointing(500);
env.setParallelism(parallelism);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ public void testSavepoint() throws Exception {
default:
throw new UnsupportedOperationException();
}
env.enableChangelogStateBackend(false);

env.enableCheckpointing(500);
env.setParallelism(parallelism);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ private JobGraph createJobGraph(ExecutionMode mode) {
env.enableCheckpointing(500, CheckpointingMode.EXACTLY_ONCE);
env.setRestartStrategy(RestartStrategies.noRestart());
env.setStateBackend((StateBackend) new MemoryStateBackend());
env.enableChangelogStateBackend(false);

switch (mode) {
case MIGRATE:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ class StatefulJobWBroadcastStateMigrationITCase(
env.setStateBackend(new HashMapStateBackend())
case _ => throw new UnsupportedOperationException
}
env.enableChangelogStateBackend(false)

lazy val firstBroadcastStateDesc = new MapStateDescriptor[Long, Long](
"broadcast-state-1",
Expand Down Expand Up @@ -179,6 +180,7 @@ class StatefulJobWBroadcastStateMigrationITCase(
env.setStateBackend(new HashMapStateBackend())
case _ => throw new UnsupportedOperationException
}
env.enableChangelogStateBackend(false)

lazy val firstBroadcastStateDesc = new MapStateDescriptor[Long, Long](
"broadcast-state-1",
Expand Down

0 comments on commit 369088f

Please sign in to comment.