aajisaka commented on a change in pull request #3664:
URL: https://github.com/apache/hadoop/pull/3664#discussion_r762113040
##########
File path:
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/BlockPlacementPolicy.java
##########
@@ -261,4 +261,16 @@ protected String getRack(final DatanodeInfo datanode) {
}
}
}
+
+ /**
+ * Updates the value used for excludeSlowNodesEnabled, which is set by
+ * {@code
DFSConfigKeys.DFS_NAMENODE_BLOCKPLACEMENTPOLICY_EXCLUDE_SLOW_NODES_ENABLED_KEY}
+ * initially.
+ *
+ * @param enable true, we will filter out slow nodes
+ * when choosing targets for blocks, otherwise false not filter.
+ */
+ public abstract void setExcludeSlowNodesEnabled(boolean enable);
+
+ public abstract boolean getExcludeSlowNodesEnabled();
Review comment:
This interface is marked as `@Private`, so adding abstract methods is
okay.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]