hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From te...@apache.org
Subject hbase git commit: HBASE-21258 Add resetting of flags for RS Group pre/post hooks in TestRSGroups
Date Mon, 01 Oct 2018 22:08:07 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-2 1728a20be -> de2e84fe2


HBASE-21258 Add resetting of flags for RS Group pre/post hooks in TestRSGroups


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/de2e84fe
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/de2e84fe
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/de2e84fe

Branch: refs/heads/branch-2
Commit: de2e84fe2e2baf5d551e27bf44405cb49277f2bd
Parents: 1728a20
Author: tedyu <yuzhihong@gmail.com>
Authored: Mon Oct 1 15:07:59 2018 -0700
Committer: tedyu <yuzhihong@gmail.com>
Committed: Mon Oct 1 15:07:59 2018 -0700

----------------------------------------------------------------------
 .../hadoop/hbase/rsgroup/TestRSGroups.java       | 19 ++++++++++++++++++-
 1 file changed, 18 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/de2e84fe/hbase-rsgroup/src/test/java/org/apache/hadoop/hbase/rsgroup/TestRSGroups.java
----------------------------------------------------------------------
diff --git a/hbase-rsgroup/src/test/java/org/apache/hadoop/hbase/rsgroup/TestRSGroups.java
b/hbase-rsgroup/src/test/java/org/apache/hadoop/hbase/rsgroup/TestRSGroups.java
index 264c864..02acca9 100644
--- a/hbase-rsgroup/src/test/java/org/apache/hadoop/hbase/rsgroup/TestRSGroups.java
+++ b/hbase-rsgroup/src/test/java/org/apache/hadoop/hbase/rsgroup/TestRSGroups.java
@@ -133,7 +133,7 @@ public class TestRSGroups extends TestRSGroupsBase {
       INIT = true;
       afterMethod();
     }
-
+    observer.resetFlags();
   }
 
   @After
@@ -297,6 +297,23 @@ public class TestRSGroups extends TestRSGroupsBase {
     boolean preMoveServersAndTables = false;
     boolean postMoveServersAndTables = false;
 
+    void resetFlags() {
+      preBalanceRSGroupCalled = false;
+      postBalanceRSGroupCalled = false;
+      preMoveServersCalled = false;
+      postMoveServersCalled = false;
+      preMoveTablesCalled = false;
+      postMoveTablesCalled = false;
+      preAddRSGroupCalled = false;
+      postAddRSGroupCalled = false;
+      preRemoveRSGroupCalled = false;
+      postRemoveRSGroupCalled = false;
+      preRemoveServersCalled = false;
+      postRemoveServersCalled = false;
+      preMoveServersAndTables = false;
+      postMoveServersAndTables = false;
+    }
+
     @Override
     public Optional<MasterObserver> getMasterObserver() {
       return Optional.of(this);


Mime
View raw message