Skip to content

Commit

Permalink
[FLINK-17750][tests] Harden YARNHighavailabilityITCase by increasing …
Browse files Browse the repository at this point in the history
…ZK session timeout to 20s

In order to harden YARNHighAvailabilityITCase against ZK session timeouts, the timeout has been increased
from 1s to 20s. This increase also increases the runtime of YARNHighAvailabilityITCase.testKillYarnSessionClusterEntrypoint
slightly.

This closes apache#12347.
  • Loading branch information
tillrohrmann committed May 27, 2020
1 parent e1989bf commit 93b81a3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ private YarnClusterDescriptor setupYarnClusterDescriptor() {
flinkConfiguration.setString(HighAvailabilityOptions.HA_MODE, "zookeeper");
flinkConfiguration.setString(HighAvailabilityOptions.HA_STORAGE_PATH, storageDir);
flinkConfiguration.setString(HighAvailabilityOptions.HA_ZOOKEEPER_QUORUM, zkServer.getConnectString());
flinkConfiguration.setInteger(HighAvailabilityOptions.ZOOKEEPER_SESSION_TIMEOUT, 1000);
flinkConfiguration.setInteger(HighAvailabilityOptions.ZOOKEEPER_SESSION_TIMEOUT, 20000);

flinkConfiguration.setString(RestartStrategyOptions.RESTART_STRATEGY, "fixed-delay");
flinkConfiguration.setInteger(RestartStrategyOptions.RESTART_STRATEGY_FIXED_DELAY_ATTEMPTS, Integer.MAX_VALUE);
Expand Down

0 comments on commit 93b81a3

Please sign in to comment.