hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zg...@apache.org
Subject hbase git commit: HBASE-19396 Fix flaky test TestHTableMultiplexerFlushCache
Date Sat, 02 Dec 2017 12:01:58 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-1.2 891db9a8a -> b28455e96


HBASE-19396 Fix flaky test TestHTableMultiplexerFlushCache


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

Branch: refs/heads/branch-1.2
Commit: b28455e9633dfcd86a5b70ad127cc13ecb63f71c
Parents: 891db9a
Author: Guanghao Zhang <zghao@apache.org>
Authored: Sat Dec 2 19:59:46 2017 +0800
Committer: Guanghao Zhang <zghao@apache.org>
Committed: Sat Dec 2 19:59:46 2017 +0800

----------------------------------------------------------------------
 .../hadoop/hbase/client/TestHTableMultiplexerFlushCache.java     | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/b28455e9/hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestHTableMultiplexerFlushCache.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestHTableMultiplexerFlushCache.java
b/hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestHTableMultiplexerFlushCache.java
index 1d5605e..19ea2f5 100644
--- a/hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestHTableMultiplexerFlushCache.java
+++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestHTableMultiplexerFlushCache.java
@@ -39,9 +39,7 @@ import org.junit.BeforeClass;
 import org.junit.Test;
 import org.junit.experimental.categories.Category;
 
-import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertTrue;
 
 @Category({ LargeTests.class, ClientTests.class })
 public class TestHTableMultiplexerFlushCache {
@@ -151,7 +149,7 @@ public class TestHTableMultiplexerFlushCache {
     ServerName newServer = null;
     // Find a new server to move that region to
     for (int i = 0; i < SLAVES; i++) {
-      HRegionServer rs = hbaseCluster.getRegionServer(0);
+      HRegionServer rs = hbaseCluster.getRegionServer(i);
       if (!rs.getServerName().equals(originalServer.getServerName())) {
         newServer = rs.getServerName();
         break;


Mime
View raw message