cndaimin opened a new pull request, #4178:
URL: https://github.com/apache/hadoop/pull/4178

   `WARN datanode.DirectoryScanner (DirectoryScanner.java:<init>(300)) - 
dfs.datanode.directoryscan.throttle.limit.ms.per.sec set to value above 1000 
ms/sec. Assuming default value of -1`
   A warning log like above will be printed when datanode is starting. The 
reason of that is the default value of 
`dfs.datanode.directoryscan.throttle.limit.ms.per.sec` is 1000 in 
hdfs-site.xml, and is -1 in 
`DFS_DATANODE_DIRECTORYSCAN_THROTTLE_LIMIT_MS_PER_SEC_DEFAULT`. We should try 
to keep it consistent, and value -1 looks is better to 1000.
   
   The code segment that print the warning log:
   ```
   if (throttle >= TimeUnit.SECONDS.toMillis(1)) {
     LOG.warn(
         "{} set to value above 1000 ms/sec. Assuming default value of {}",
         DFSConfigKeys.DFS_DATANODE_DIRECTORYSCAN_THROTTLE_LIMIT_MS_PER_SEC_KEY,
         
DFSConfigKeys.DFS_DATANODE_DIRECTORYSCAN_THROTTLE_LIMIT_MS_PER_SEC_DEFAULT);
     throttle =
         
DFSConfigKeys.DFS_DATANODE_DIRECTORYSCAN_THROTTLE_LIMIT_MS_PER_SEC_DEFAULT;
   }
   ```


-- 
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]

Reply via email to