Переглянути джерело

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

(cherry picked from commit 8d4926f38bf53b32453cd2bc7322c8818f752f85)
Inigo Goiri 7 роки тому
батько
коміт
a3c0c03899

+ 7 - 0
hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/tools/TestDFSAdminWithHA.java

@@ -94,6 +94,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