haiyang1987 opened a new pull request, #5671: URL: https://github.com/apache/hadoop/pull/5671
### Description of PR As described in [HDFS-17019](https://issues.apache.org/jira/browse/HDFS-17019) The logic of Reconfigure slow peer enable for Namenode requires the following optimizations: 1.Make SlowPeerTracker slowPeerTracker volatile. 2.When starting the NameNode, if the parameter dfs.datanode.peer.stats.enabled is set to false, DatanodeManager#startSlowPeerCollector() will not call, as a result the Slow peers collection thread 'slowPeerCollectorDaemon' will not be started . If the parameter dfs.datanode.peer.stats.enabled is dynamically refreshed to true, the current logic will not call DatanodeManager#startSlowPeerCollector(), which to thread 'slowPeerCollectorDaemon' not started as expected, so we will optimize here -- 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]
