HBASE-25361 [Flakey Tests] branch-2 TestMetaRegionLocationCache.testStandByMetaLocations (#2736)
Addendum; Reset counter so we actually wait in the new loop added by the above.
This commit is contained in:
parent
a0f4c28430
commit
b1a5567740
|
@ -99,6 +99,7 @@ public class TestMetaRegionLocationCache {
|
|||
ZKWatcher zk = master.getZooKeeper();
|
||||
List<String> metaZnodes = zk.getMetaReplicaNodes();
|
||||
// Wait till all replicas available.
|
||||
retries = 0;
|
||||
while (master.getMetaRegionLocationCache().getMetaRegionLocations().get().size() !=
|
||||
metaZnodes.size()) {
|
||||
Thread.sleep(1000);
|
||||
|
@ -119,6 +120,7 @@ public class TestMetaRegionLocationCache {
|
|||
|
||||
@Test public void testStandByMetaLocations() throws Exception {
|
||||
HMaster standBy = TEST_UTIL.getMiniHBaseCluster().startMaster().getMaster();
|
||||
standBy.isInitialized();
|
||||
verifyCachedMetaLocations(standBy);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue