From 19f35cfd5707eb1f2df2b99734acae64935c2148 Mon Sep 17 00:00:00 2001 From: Ayush Saxena Date: Tue, 22 Oct 2019 18:34:02 +0530 Subject: [PATCH] HDFS-14918. Remove useless getRedundancyThread from BlockManagerTestUtil. Contributed by Fei Hui. --- .../hdfs/server/blockmanagement/BlockManagerTestUtil.java | 8 -------- 1 file changed, 8 deletions(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/blockmanagement/BlockManagerTestUtil.java b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/blockmanagement/BlockManagerTestUtil.java index 4d6f202c9d..7fd5e84021 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/blockmanagement/BlockManagerTestUtil.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/blockmanagement/BlockManagerTestUtil.java @@ -34,7 +34,6 @@ import org.apache.hadoop.hdfs.server.protocol.DatanodeStorage; import org.apache.hadoop.hdfs.server.protocol.StorageReport; import org.apache.hadoop.test.Whitebox; -import org.apache.hadoop.util.Daemon; import org.junit.Assert; import com.google.common.base.Preconditions; @@ -146,13 +145,6 @@ private static int getNumberOfDomains(final BlockManager blockManager, return domSet.size(); } - /** - * @return redundancy monitor thread instance from block manager. - */ - public static Daemon getRedundancyThread(final BlockManager blockManager) { - return blockManager.getRedundancyThread(); - } - /** * Stop the redundancy monitor thread. */