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:29:51 UTC
(hbase) branch branch-2.6 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 branch-2.6
in repository https://gitbox.apache.org/repos/asf/hbase.git
The following commit(s) were added to refs/heads/branch-2.6 by this push:
new a24523c3a62 HBASE-30094 Reset TestRollbackSCP state before reruns (#8574)
a24523c3a62 is described below
commit a24523c3a62190f72f8710138850474494d83106
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 4eebc72f65d..3565f3fc2ac 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
@@ -131,6 +131,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 {