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

zhangduo 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 eda96c97382 HBASE-29977 TestFSUtils fails with class not found (#7879)
eda96c97382 is described below

commit eda96c97382e1750c10ad2317ca9e9a3367de1b6
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 ce0e4bcea66..3b9e3054206 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
@@ -522,6 +522,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);

Reply via email to