This is an automated email from the ASF dual-hosted git repository.
liuxiaocs7 pushed a commit to branch branch-2
in repository https://gitbox.apache.org/repos/asf/hbase.git
The following commit(s) were added to refs/heads/branch-2 by this push:
new 258477a7237 HBASE-30156 TestSecureWAL is broken (#8228)
258477a7237 is described below
commit 258477a72374f24a2fad54a5c442c8ea4ccdc4d1
Author: Xiao Liu <[email protected]>
AuthorDate: Wed May 13 23:44:44 2026 +0800
HBASE-30156 TestSecureWAL is broken (#8228)
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 5b3025d783f5572e78d176ba5b5d5e4bcc9f2d24)
---
.../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();