HBASE-19396 Fix flaky test TestHTableMultiplexerFlushCache
This commit is contained in:
parent
99790a52ae
commit
6c6910b0b4
|
@ -156,7 +156,7 @@ public class TestHTableMultiplexerFlushCache {
|
||||||
ServerName newServer = null;
|
ServerName newServer = null;
|
||||||
// Find a new server to move that region to
|
// Find a new server to move that region to
|
||||||
for (int i = 0; i < SLAVES; i++) {
|
for (int i = 0; i < SLAVES; i++) {
|
||||||
HRegionServer rs = hbaseCluster.getRegionServer(0);
|
HRegionServer rs = hbaseCluster.getRegionServer(i);
|
||||||
if (!rs.getServerName().equals(originalServer.getServerName())) {
|
if (!rs.getServerName().equals(originalServer.getServerName())) {
|
||||||
newServer = rs.getServerName();
|
newServer = rs.getServerName();
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue