HBASE-19396 Fix flaky test TestHTableMultiplexerFlushCache

This commit is contained in:
Guanghao Zhang 2017-12-02 20:12:38 +08:00
parent c0da74f7c1
commit d6a4a3dc33
1 changed files with 1 additions and 1 deletions

View File

@ -156,7 +156,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;