This is an automated email from the ASF dual-hosted git repository.
vjasani pushed a commit to branch branch-1
in repository https://gitbox.apache.org/repos/asf/hbase.git
The following commit(s) were added to refs/heads/branch-1 by this push:
new 0ff6a75 HBASE-26185 Fix TestMaster#testMoveRegionWhenNotInitialized
in the presence of hbase.min.version.move.system.tables (#3573)
0ff6a75 is described below
commit 0ff6a75b48b2f4cb3cc186ff3bdbfafff18538d7
Author: Viraj Jasani <[email protected]>
AuthorDate: Tue Aug 10 10:57:04 2021 +0530
HBASE-26185 Fix TestMaster#testMoveRegionWhenNotInitialized in the presence
of hbase.min.version.move.system.tables (#3573)
Signed-off-by: Michael Stack <[email protected]>
---
.../src/test/java/org/apache/hadoop/hbase/master/TestMaster.java | 5 +++++
1 file changed, 5 insertions(+)
diff --git
a/hbase-server/src/test/java/org/apache/hadoop/hbase/master/TestMaster.java
b/hbase-server/src/test/java/org/apache/hadoop/hbase/master/TestMaster.java
index 34715aa..381c8a4 100644
--- a/hbase-server/src/test/java/org/apache/hadoop/hbase/master/TestMaster.java
+++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/master/TestMaster.java
@@ -66,6 +66,11 @@ public class TestMaster {
public static void beforeAllTests() throws Exception {
// we will retry operations when PleaseHoldException is thrown
TEST_UTIL.getConfiguration().setInt(HConstants.HBASE_CLIENT_RETRIES_NUMBER, 3);
+ // Set hbase.min.version.move.system.tables as version 0 so that
+ // testMoveRegionWhenNotInitialized never fails even if hbase-default has
valid default
+ // value present for production use-case.
+ // See HBASE-22923 for details.
+ TEST_UTIL.getConfiguration().set("hbase.min.version.move.system.tables",
"0.0.0");
// Start a cluster of two regionservers.
TEST_UTIL.startMiniCluster(2);
admin = TEST_UTIL.getHBaseAdmin();