Skip to content

Commit

Permalink
HBASE-26185 Fix TestMaster#testMoveRegionWhenNotInitialized in the pr…
Browse files Browse the repository at this point in the history
…esence of hbase.min.version.move.system.tables (#3573)

Signed-off-by: Michael Stack <stack@apache.org>
  • Loading branch information
virajjasani committed Aug 10, 2021
1 parent 79a6dc6 commit 40a7a75
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,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.getAdmin();
Expand Down

0 comments on commit 40a7a75

Please sign in to comment.