You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by st...@apache.org on 2020/12/05 22:01:26 UTC
[hbase] branch branch-2 updated: 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 is an automated email from the ASF dual-hosted git repository.
stack pushed a commit to branch branch-2
in repository https://gitbox.apache.org/repos/asf/hbase.git
The following commit(s) were added to refs/heads/branch-2 by this push:
new 4d695ad HBASE-25361 [Flakey Tests] branch-2 TestMetaRegionLocationCache.testStandByMetaLocations (#2736) Addendum; Reset counter so we actually wait in the new loop added by the above.
4d695ad is described below
commit 4d695ad74af58ff489857feb0aa47604847cbe48
Author: stack <st...@apache.org>
AuthorDate: Sat Dec 5 14:00:18 2020 -0800
HBASE-25361 [Flakey Tests] branch-2 TestMetaRegionLocationCache.testStandByMetaLocations (#2736)
Addendum; Reset counter so we actually wait in the new loop added by the
above.
---
.../org/apache/hadoop/hbase/client/TestMetaRegionLocationCache.java | 2 ++
1 file changed, 2 insertions(+)
diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestMetaRegionLocationCache.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestMetaRegionLocationCache.java
index 577e15c..2bcddc9 100644
--- a/hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestMetaRegionLocationCache.java
+++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestMetaRegionLocationCache.java
@@ -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);
}