Skip to content

Commit

Permalink
[FLINK-23559][tests] Randomize periodic materialisation interval in t…
Browse files Browse the repository at this point in the history
…ests
  • Loading branch information
rkhachatryan committed Feb 14, 2022
1 parent a2c5f48 commit 6eeb7e1
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,15 @@ private static void randomizeConfiguration(MiniCluster miniCluster, Configuratio
boolean enabled =
randomize(conf, StateChangelogOptions.ENABLE_STATE_CHANGE_LOG, true, false);
if (enabled) {
randomize(
conf,
StateChangelogOptions.PERIODIC_MATERIALIZATION_INTERVAL,
Duration.ofMillis(100),
Duration.ofMillis(500),
Duration.ofSeconds(1),
Duration.ofSeconds(5),
Duration.ofSeconds(
Long.MAX_VALUE / 1000 /* max allowed by Duration.toMillis */));
miniCluster.overrideRestoreModeForRandomizedChangelogStateBackend();
}
}
Expand Down

0 comments on commit 6eeb7e1

Please sign in to comment.