Repository navigation
Conversation
|
🎊 +1 overall
This message was automatically generated. |
slfan1989
reviewed
Nov 14, 2026
| 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 |
Contributor
There was a problem hiding this 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.
|
💔 -1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of PR
HDFS-16316 added a check to DirectoryScanner#scan that verifies, for every block, that both the block file and the meta file are regular files (FileUtil#isRegularFile with NOFOLLOW_LINKS). The check runs during reconciliation, after the reports of all volumes have been compiled, merged and sorted by block id. It therefore issues two extra lstat calls per block in block id order, which interleaves all volumes and sub-directories and has no locality at all.
How was this patch tested?
Add UT
For code changes:
declared according to the connector-specific documentation? Note: Automated CI
testing doesn't cover all cases so manual testing with cloud storage is still
required.
LICENSE,LICENSE-binary,NOTICE-binaryfiles?AI Tooling
If an AI tool was used:
where is the name of the AI tool used.
https://www.apache.org/legal/generative-tooling.html