You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by lu...@apache.org on 2026/09/09 14:19:44 UTC

(hbase) branch master updated: HBASE-30094 Reset TestRollbackSCP state before reruns (#8574)

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

guluo2016 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hbase.git


The following commit(s) were added to refs/heads/master by this push:
     new 50757d0ce90 HBASE-30094 Reset TestRollbackSCP state before reruns (#8574)
50757d0ce90 is described below

commit 50757d0ce9054766a628ca67dae0b656957cf043
Author: Ma Zhengxuan <49...@users.noreply.github.com>
AuthorDate: Wed Sep 9 22:19:37 2026 +0800

    HBASE-30094 Reset TestRollbackSCP state before reruns (#8574)
    
    Signed-off by: Duo Zhang <zh...@apache.org>
    Signed-off by: Peng Lu <lu...@apache.org>
    Co-authored-by: mazhengxuan <ma...@didiglobal.com>
---
 .../org/apache/hadoop/hbase/master/assignment/TestRollbackSCP.java   | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/master/assignment/TestRollbackSCP.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/master/assignment/TestRollbackSCP.java
index 14863515392..793de4e0444 100644
--- a/hbase-server/src/test/java/org/apache/hadoop/hbase/master/assignment/TestRollbackSCP.java
+++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/master/assignment/TestRollbackSCP.java
@@ -133,6 +133,11 @@ public class TestRollbackSCP {
   @BeforeEach
   public void setUp() throws IOException {
     UTIL.ensureSomeNonStoppedRegionServersAvailable(2);
+    // Surefire reruns failed tests in the same JVM without rerunning @BeforeAll, so reset the
+    // fault injection state before each attempt.
+    INJECTED.set(false);
+    ProcedureTestingUtility.setKillAndToggleBeforeStoreUpdateInRollback(
+      UTIL.getMiniHBaseCluster().getMaster().getMasterProcedureExecutor(), false);
   }
 
   private ServerCrashProcedure getSCPForServer(ServerName serverName) throws IOException {