This is an automated email from the ASF dual-hosted git repository.
zhangduo pushed a commit to branch branch-2.5
in repository https://gitbox.apache.org/repos/asf/hbase.git
The following commit(s) were added to refs/heads/branch-2.5 by this push:
new ceeb49b1a33 HBASE-29977 TestFSUtils fails with class not found (#7879)
ceeb49b1a33 is described below
commit ceeb49b1a334d7c19c725135a3a24a6294a30cd3
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 ebac18c153c..3acb4dc1231 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
@@ -511,6 +511,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);