hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From te...@apache.org
Subject hbase git commit: HBASE-13514 Fix test failures in TestScannerHeartbeatMessages caused by incorrect setting of hbase.rpc.timeout (Jonathan Lawlor)
Date Mon, 20 Apr 2015 21:48:22 GMT
Repository: hbase
Updated Branches:
  refs/heads/master 702aea5b3 -> eb82b8b30


HBASE-13514 Fix test failures in TestScannerHeartbeatMessages caused by incorrect setting
of hbase.rpc.timeout (Jonathan Lawlor)


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/eb82b8b3
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/eb82b8b3
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/eb82b8b3

Branch: refs/heads/master
Commit: eb82b8b3098d6a9ac62aa50189f9d4b289f38472
Parents: 702aea5
Author: tedyu <yuzhihong@gmail.com>
Authored: Mon Apr 20 14:48:10 2015 -0700
Committer: tedyu <yuzhihong@gmail.com>
Committed: Mon Apr 20 14:48:10 2015 -0700

----------------------------------------------------------------------
 .../hadoop/hbase/regionserver/TestScannerHeartbeatMessages.java | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/eb82b8b3/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestScannerHeartbeatMessages.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestScannerHeartbeatMessages.java
b/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestScannerHeartbeatMessages.java
index 495be30..a272323 100644
--- a/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestScannerHeartbeatMessages.java
+++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestScannerHeartbeatMessages.java
@@ -104,7 +104,7 @@ public class TestScannerHeartbeatMessages {
   // Time, in milliseconds, that the client will wait for a response from the server before
timing
   // out. This value is used server side to determine when it is necessary to send a heartbeat
   // message to the client
-  private static int CLIENT_TIMEOUT = 500;
+  private static int CLIENT_TIMEOUT = 2000;
 
   // The server limits itself to running for half of the CLIENT_TIMEOUT value.
   private static int SERVER_TIME_LIMIT = CLIENT_TIMEOUT / 2;
@@ -113,7 +113,7 @@ public class TestScannerHeartbeatMessages {
   private static int DEFAULT_ROW_SLEEP_TIME = SERVER_TIME_LIMIT / 2;
   // By default, at most cells for two column families are retrieved before the time limit
is
   // reached
-  private static int DEFAULT_CF_SLEEP_TIME = SERVER_TIME_LIMIT / 2;
+  private static int DEFAULT_CF_SLEEP_TIME = DEFAULT_ROW_SLEEP_TIME / NUM_FAMILIES;
 
   @BeforeClass
   public static void setUpBeforeClass() throws Exception {
@@ -173,6 +173,7 @@ public class TestScannerHeartbeatMessages {
 
   @AfterClass
   public static void tearDownAfterClass() throws Exception {
+    TEST_UTIL.deleteTable(TABLE_NAME);
     TEST_UTIL.shutdownMiniCluster();
   }
 


Mime
View raw message