HDFS-13563. TestDFSAdminWithHA times out on Windows. Contributed by Lukas Majercak.

(cherry picked from commit 8d4926f38bf53b32453cd2bc7322c8818f752f85)
This commit is contained in:
Inigo Goiri 2018-06-14 09:58:50 -07:00
parent 96a6798c1d
commit 06c87edf51

View File

@ -94,6 +94,13 @@ private void setUpHaCluster(boolean security) throws Exception {
System.setOut(new PrintStream(out));
System.setErr(new PrintStream(err));
// Reduce the number of retries to speed up the tests.
conf.setInt(
CommonConfigurationKeysPublic.IPC_CLIENT_CONNECT_MAX_RETRIES_KEY, 3);
conf.setInt(
CommonConfigurationKeysPublic.IPC_CLIENT_CONNECT_RETRY_INTERVAL_KEY,
500);
}
@After