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

liuxiaocs7 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 e9dc1ed42d9 HBASE-30156 TestSecureWAL is broken (#8229)
e9dc1ed42d9 is described below

commit e9dc1ed42d97d43b43646fdea8f1dda5d601a4f6
Author: Xiao Liu <[email protected]>
AuthorDate: Wed May 13 23:48:10 2026 +0800

    HBASE-30156 TestSecureWAL is broken (#8229)
    
    Co-authored-by: Duo Zhang <[email protected]>
    
    Signed-off-by: Xiao Liu <[email protected]>
    Signed-off-by: Dávid Paksy <[email protected]>
    
    (cherry picked from commit 258477a72374f24a2fad54a5c442c8ea4ccdc4d1)
---
 .../test/java/org/apache/hadoop/hbase/wal/TestSecureWAL.java | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git 
a/hbase-server/src/test/java/org/apache/hadoop/hbase/wal/TestSecureWAL.java 
b/hbase-server/src/test/java/org/apache/hadoop/hbase/wal/TestSecureWAL.java
index 8b81417172b..4487b48a3f6 100644
--- a/hbase-server/src/test/java/org/apache/hadoop/hbase/wal/TestSecureWAL.java
+++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/wal/TestSecureWAL.java
@@ -40,8 +40,8 @@ import org.apache.hadoop.hbase.client.RegionInfo;
 import org.apache.hadoop.hbase.client.RegionInfoBuilder;
 import org.apache.hadoop.hbase.io.crypto.KeyProviderForTesting;
 import org.apache.hadoop.hbase.regionserver.MultiVersionConcurrencyControl;
-import org.apache.hadoop.hbase.testclassification.MediumTests;
 import org.apache.hadoop.hbase.testclassification.RegionServerTests;
+import org.apache.hadoop.hbase.testclassification.SmallTests;
 import org.apache.hadoop.hbase.util.Bytes;
 import org.apache.hadoop.hbase.util.CommonFSUtils;
 import org.apache.hadoop.hbase.util.EnvironmentEdgeManager;
@@ -54,13 +54,13 @@ import org.junit.jupiter.api.TestTemplate;
 import org.junit.jupiter.params.provider.Arguments;
 
 @Tag(RegionServerTests.TAG)
-@Tag(MediumTests.TAG)
-@HBaseParameterizedTestTemplate
+@Tag(SmallTests.TAG)
+@HBaseParameterizedTestTemplate(name = "[{index}]: provider={0}")
 public class TestSecureWAL {
 
   static final HBaseTestingUtility TEST_UTIL = new HBaseTestingUtility();
 
-  private String testMethodName;
+  private TableName tableName;
 
   public String walProvider;
 
@@ -89,13 +89,13 @@ public class TestSecureWAL {
 
   @BeforeEach
   public void setUp(TestInfo testInfo) {
-    testMethodName = testInfo.getTestMethod().get().getName() + "_" + 
walProvider;
+    tableName = TableName.valueOf(testInfo.getTestMethod().get().getName()
+      + testInfo.getDisplayName().replaceAll("[^a-zA-Z0-9]", "_"));
     TEST_UTIL.getConfiguration().set(WALFactory.WAL_PROVIDER, walProvider);
   }
 
   @TestTemplate
   public void testSecureWAL() throws Exception {
-    TableName tableName = 
TableName.valueOf(testMethodName.replaceAll("[^a-zA-Z0-9]", "_"));
     NavigableMap<byte[], Integer> scopes = new 
TreeMap<>(Bytes.BYTES_COMPARATOR);
     scopes.put(tableName.getName(), 0);
     RegionInfo regionInfo = RegionInfoBuilder.newBuilder(tableName).build();

Reply via email to