slfan1989 commented on code in PR #8825: URL: https://github.com/apache/hadoop/pull/8825#discussion_r4572815470
########## hadoop-hdfs-project/hadoop-hdfs/src/main/resources/hdfs-default.xml: ########## @@ -946,6 +946,20 @@ </description> </property> +<property> + <name>dfs.datanode.directoryscan.regular.file.check</name> + <value>true</value> + <description>Whether the directory scanner verifies that the block file and + the meta file of every block are regular files (not directories, symlinks + or special files). The check issues two extra lstat calls per block after + all volumes have been listed, in block id order across all volumes. On + DataNodes whose number of files exceeds the kernel inode cache this second + pass is a random read on every volume and can take hours; set this to false + to skip it. Blocks that differ in other ways are still checked for regular Review Comment: Thanks for keeping the check enabled by default. Could we narrow the last sentence? When a replica exists on disk but is missing from `volumeMap`, `checkAndUpdate()` adds it and returns before checking the file type. I verified that this path can add a symlinked replica with the option disabled. Please clarify that only some reconciliation paths still check for regular files. -- 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]
