From e45541be51b6ddba08ea4c2274509d17a1a87363 Mon Sep 17 00:00:00 2001 From: Inigo Goiri Date: Thu, 14 Jun 2018 09:58:50 -0700 Subject: [PATCH] HDFS-13563. TestDFSAdminWithHA times out on Windows. Contributed by Lukas Majercak. (cherry picked from commit 8d4926f38bf53b32453cd2bc7322c8818f752f85) --- .../org/apache/hadoop/hdfs/tools/TestDFSAdminWithHA.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/tools/TestDFSAdminWithHA.java b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/tools/TestDFSAdminWithHA.java index aa4d4819155..c6139c13e47 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/tools/TestDFSAdminWithHA.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/tools/TestDFSAdminWithHA.java @@ -97,6 +97,13 @@ public class TestDFSAdminWithHA { 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