HBASE-19396 Fix flaky test TestHTableMultiplexerFlushCache
This commit is contained in:
parent
c0da74f7c1
commit
d6a4a3dc33
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue