[ https://issues.apache.org/jira/browse/HDFS-16287?focusedWorklogId=677612&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-677612 ]
ASF GitHub Bot logged work on HDFS-16287: ----------------------------------------- Author: ASF GitHub Bot Created on: 05/Nov/21 20:15 Start Date: 05/Nov/21 20:15 Worklog Time Spent: 10m Work Description: haiyang1987 commented on a change in pull request #3596: URL: https://github.com/apache/hadoop/pull/3596#discussion_r743380933 ########## File path: hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/DatanodeManager.java ########## @@ -511,7 +505,16 @@ private boolean isInactive(DatanodeInfo datanode) { private boolean isSlowNode(String dnUuid) { return avoidSlowDataNodesForRead && slowNodesUuidSet.contains(dnUuid); } - + + public void setAvoidSlowDataNodesForReadEnabled(boolean enable) { Review comment: Thanks @tomscut for your comment. HDFS-15120 already support BlockPlacementPolicyDefault#dfs.namenode.block-placement-policy.exclude-slow-nodes.enabled reconfigurable. But the current way I think is heavy. Do we need to support alone logic make excludeSlowNodesEnabled reconfigurable? ########## File path: hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/DatanodeManager.java ########## @@ -511,7 +505,16 @@ private boolean isInactive(DatanodeInfo datanode) { private boolean isSlowNode(String dnUuid) { return avoidSlowDataNodesForRead && slowNodesUuidSet.contains(dnUuid); } - + + public void setAvoidSlowDataNodesForReadEnabled(boolean enable) { Review comment: Thanks @tomscut for your comment. Is there anything else that needs to be improved in the current code? -- 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: common-issues-unsubscr...@hadoop.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org Issue Time Tracking ------------------- Worklog Id: (was: 677612) Time Spent: 10h (was: 9h 50m) > Support to make dfs.namenode.avoid.read.slow.datanode reconfigurable > --------------------------------------------------------------------- > > Key: HDFS-16287 > URL: https://issues.apache.org/jira/browse/HDFS-16287 > Project: Hadoop HDFS > Issue Type: Improvement > Reporter: Haiyang Hu > Assignee: Haiyang Hu > Priority: Major > Labels: pull-request-available > Time Spent: 10h > Remaining Estimate: 0h > > 1. Consider that make dfs.namenode.avoid.read.slow.datanode reconfigurable > and rapid rollback in case this feature > [HDFS-16076|https://issues.apache.org/jira/browse/HDFS-16076] unexpected > things happen in production environment > 2. DatanodeManager#startSlowPeerCollector by parameter > 'dfs.datanode.peer.stats.enabled' to control -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org