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 11:50:46 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-1.4 8cae10aba -> c832daffd


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/c832daff
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/c832daff
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/c832daff

Branch: refs/heads/branch-1.4
Commit: c832daffd879c24f185b806de00c402864427eb1
Parents: 8cae10a
Author: Guanghao Zhang <zghao@apache.org>
Authored: Fri Dec 1 15:35:00 2017 +0800
Committer: Guanghao Zhang <zghao@apache.org>
Committed: Sat Dec 2 19:47:24 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/c832daff/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 2edabc5..19fd816 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)) {
         newServer = rs.getServerName();
         break;


Mime
View raw message