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:07:20 GMT
Repository: hbase
Updated Branches:
  refs/heads/master f9d51b67e -> 4d7235ec5


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/4d7235ec
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/4d7235ec
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/4d7235ec

Branch: refs/heads/master
Commit: 4d7235ec547d512a41ff205d8be1253121c626ef
Parents: f9d51b6
Author: tedyu <yuzhihong@gmail.com>
Authored: Mon Oct 1 15:07:06 2018 -0700
Committer: tedyu <yuzhihong@gmail.com>
Committed: Mon Oct 1 15:07:06 2018 -0700

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


http://git-wip-us.apache.org/repos/asf/hbase/blob/4d7235ec/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 2fac94c..d1a492d 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
@@ -305,6 +305,31 @@ public class TestRSGroups extends TestRSGroupsBase {
     boolean preGetRSGroupInfoOfServerCalled = false;
     boolean postGetRSGroupInfoOfServerCalled = 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;
+      preGetRSGroupInfoCalled = false;
+      postGetRSGroupInfoCalled = false;
+      preGetRSGroupInfoOfTableCalled = false;
+      postGetRSGroupInfoOfTableCalled = false;
+      preListRSGroupsCalled = false;
+      postListRSGroupsCalled = false;
+      preGetRSGroupInfoOfServerCalled = false;
+      postGetRSGroupInfoOfServerCalled = false;
+    }
+
     @Override
     public Optional<MasterObserver> getMasterObserver() {
       return Optional.of(this);


Mime
View raw message