This is an automated email from the ASF dual-hosted git repository.
zhangduo pushed a commit to branch branch-3
in repository https://gitbox.apache.org/repos/asf/hbase.git
The following commit(s) were added to refs/heads/branch-3 by this push:
new 9af4bdd9c14 HBASE-29977 TestFSUtils fails with class not found (#7879)
9af4bdd9c14 is described below
commit 9af4bdd9c14e56eb7d58fae149c1f4c7a0288112
Author: Duo Zhang <[email protected]>
AuthorDate: Mon Mar 9 22:40:58 2026 +0800
HBASE-29977 TestFSUtils fails with class not found (#7879)
Signed-off-by: Nihal Jain <[email protected]>
Signed-off-by: Peng Lu <[email protected]>
Reviewed-by: Liu Xiao <[email protected]>
(cherry picked from commit aa02da894f77779854a70792b7dfebc6106be85f)
---
.../src/test/java/org/apache/hadoop/hbase/util/TestFSUtils.java | 4 ++++
1 file changed, 4 insertions(+)
diff --git
a/hbase-server/src/test/java/org/apache/hadoop/hbase/util/TestFSUtils.java
b/hbase-server/src/test/java/org/apache/hadoop/hbase/util/TestFSUtils.java
index 7d18b584d7d..c5555ec8958 100644
--- a/hbase-server/src/test/java/org/apache/hadoop/hbase/util/TestFSUtils.java
+++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/util/TestFSUtils.java
@@ -525,6 +525,10 @@ public class TestFSUtils {
// Set short retry timeouts so this test runs faster
conf.setInt(DFSConfigKeys.DFS_CLIENT_RETRY_WINDOW_BASE, 0);
conf.setBoolean("dfs.datanode.transferTo.allowed", false);
+ // disable metrics logger since it depend on commons-logging internal
classes and we do not want
+ // commons-logging on our classpath
+ conf.setInt(DFSConfigKeys.DFS_NAMENODE_METRICS_LOGGER_PERIOD_SECONDS_KEY,
0);
+ conf.setInt(DFSConfigKeys.DFS_DATANODE_METRICS_LOGGER_PERIOD_SECONDS_KEY,
0);
MiniDFSCluster cluster = new
MiniDFSCluster.Builder(conf).numDataNodes(3).build();
// Get the metrics. Should be empty.
DFSHedgedReadMetrics metrics = FSUtils.getDFSHedgedReadMetrics(conf);