You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by vj...@apache.org on 2021/08/10 05:33:32 UTC

[hbase] branch branch-2.3 updated: HBASE-26185 Fix TestMaster#testMoveRegionWhenNotInitialized in the presence of hbase.min.version.move.system.tables (#3573)

This is an automated email from the ASF dual-hosted git repository.

vjasani pushed a commit to branch branch-2.3
in repository https://gitbox.apache.org/repos/asf/hbase.git


The following commit(s) were added to refs/heads/branch-2.3 by this push:
     new 2f6152f  HBASE-26185 Fix TestMaster#testMoveRegionWhenNotInitialized in the presence of hbase.min.version.move.system.tables (#3573)
2f6152f is described below

commit 2f6152f3bb85d4b22c8ece1abbd3b90f1765c766
Author: Viraj Jasani <vj...@apache.org>
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 <st...@apache.org>
---
 .../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 8093bc2..6a268e7 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
@@ -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();