Skip to content

Commit 40a7a75

Browse files
committed
HBASE-26185 Fix TestMaster#testMoveRegionWhenNotInitialized in the presence of hbase.min.version.move.system.tables (#3573)
Signed-off-by: Michael Stack <[email protected]>
1 parent 79a6dc6 commit 40a7a75

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

hbase-server/src/test/java/org/apache/hadoop/hbase/master/TestMaster.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,11 @@ public class TestMaster {
8383
public static void beforeAllTests() throws Exception {
8484
// we will retry operations when PleaseHoldException is thrown
8585
TEST_UTIL.getConfiguration().setInt(HConstants.HBASE_CLIENT_RETRIES_NUMBER, 3);
86+
// Set hbase.min.version.move.system.tables as version 0 so that
87+
// testMoveRegionWhenNotInitialized never fails even if hbase-default has valid default
88+
// value present for production use-case.
89+
// See HBASE-22923 for details.
90+
TEST_UTIL.getConfiguration().set("hbase.min.version.move.system.tables", "0.0.0");
8691
// Start a cluster of two regionservers.
8792
TEST_UTIL.startMiniCluster(2);
8893
admin = TEST_UTIL.getAdmin();

0 commit comments

Comments
 (0)