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();
|
ZKWatcher zk = master.getZooKeeper();
|
||||||
List<String> metaZnodes = zk.getMetaReplicaNodes();
|
List<String> metaZnodes = zk.getMetaReplicaNodes();
|
||||||
// Wait till all replicas available.
|
// Wait till all replicas available.
|
||||||
|
retries = 0;
|
||||||
while (master.getMetaRegionLocationCache().getMetaRegionLocations().get().size() !=
|
while (master.getMetaRegionLocationCache().getMetaRegionLocations().get().size() !=
|
||||||
metaZnodes.size()) {
|
metaZnodes.size()) {
|
||||||
Thread.sleep(1000);
|
Thread.sleep(1000);
|
||||||
|
@ -119,6 +120,7 @@ public class TestMetaRegionLocationCache {
|
||||||
|
|
||||||
@Test public void testStandByMetaLocations() throws Exception {
|
@Test public void testStandByMetaLocations() throws Exception {
|
||||||
HMaster standBy = TEST_UTIL.getMiniHBaseCluster().startMaster().getMaster();
|
HMaster standBy = TEST_UTIL.getMiniHBaseCluster().startMaster().getMaster();
|
||||||
|
standBy.isInitialized();
|
||||||
verifyCachedMetaLocations(standBy);
|
verifyCachedMetaLocations(standBy);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue