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 <[email protected]>
AuthorDate: Wed Sep 9 22:19:37 2026 +0800

    HBASE-30094 Reset TestRollbackSCP state before reruns (#8574)
    
    Signed-off by: Duo Zhang <[email protected]>
    Signed-off by: Peng Lu <[email protected]>
    Co-authored-by: mazhengxuan <[email protected]>
---
 .../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 {

Reply via email to