diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/BlockPoolManager.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/BlockPoolManager.java index 073576546c..1611c3c9ce 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/BlockPoolManager.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/BlockPoolManager.java @@ -308,13 +308,6 @@ Map getBpByNameserviceId() { return bpByNameserviceId; } - boolean isSlownodeByNameserviceId(String nsId) { - if (bpByNameserviceId.containsKey(nsId)) { - return bpByNameserviceId.get(nsId).isSlownode(); - } - return false; - } - boolean isSlownodeByBlockPoolId(String bpId) { if (bpByBlockPoolId.containsKey(bpId)) { return bpByBlockPoolId.get(bpId).isSlownode(); diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/DataNode.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/DataNode.java index 41088cf59c..2096f18d31 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/DataNode.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/DataNode.java @@ -4240,10 +4240,6 @@ public DataSetLockManager getDataSetLockManager() { return dataSetLockManager; } - boolean isSlownodeByNameserviceId(String nsId) { - return blockPoolManager.isSlownodeByNameserviceId(nsId); - } - boolean isSlownodeByBlockPoolId(String bpId) { return blockPoolManager.isSlownodeByBlockPoolId(bpId); }