From 3eb0400a318c6feab79efc299f48bac83affacd4 Mon Sep 17 00:00:00 2001 From: Andrew Kyle Purtell Date: Wed, 19 Mar 2014 19:15:41 +0000 Subject: [PATCH] HBASE-10787 TestHCM#testConnection* takes too long (Ted Yu) git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1579358 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/test/java/org/apache/hadoop/hbase/client/TestHCM.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestHCM.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestHCM.java index d56d69b1bda..44192c82df9 100644 --- a/hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestHCM.java +++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestHCM.java @@ -316,7 +316,7 @@ public class TestHCM { Configuration c2 = new Configuration(TEST_UTIL.getConfiguration()); // We want to work on a separate connection. c2.set(HConstants.HBASE_CLIENT_INSTANCE_ID, String.valueOf(-1)); - c2.setInt(HConstants.HBASE_CLIENT_RETRIES_NUMBER, Integer.MAX_VALUE - 1); // retry a lot + c2.setInt(HConstants.HBASE_CLIENT_RETRIES_NUMBER, 100); // retry a lot c2.setInt(HConstants.HBASE_CLIENT_PAUSE, 0); // don't wait between retries. c2.setInt(RpcClient.FAILED_SERVER_EXPIRY_KEY, 0); // Server do not really expire c2.setBoolean(RpcClient.ALLOWS_INTERRUPTS, allowsInterrupt);