HDFS-17948. Improve FedBalance DistCp option handling.#8579
Open
qijiale76 wants to merge 1 commit into
Open
Conversation
|
💔 -1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
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
This PR improves how FedBalance builds the DistCp commands it submits.
Previously, FedBalance used a mostly fixed DistCp option set. This patch adds operator-facing controls for several DistCp settings:
-skipAclPreserveto disable ACL preservation.hdfs.fedbalance.preserve.acl.enabledto control ACL preservation from configuration.-preserveTimesto preserve file timestamps.-distcpStrategyto pass a DistCp copy strategy.-numListstatusThreadsto pass DistCp listStatus thread count.-diffThresholdin the shared FedBalance CLI options.FedBalanceContextso recovered jobs use the same DistCp settings.The default behavior remains conservative: timestamp preservation is disabled unless requested, DistCp strategy and listStatus thread count use DistCp defaults unless specified, and ACL preservation remains enabled only when ACLs are supported on both sides.
How was this patch tested?
Ran the related FedBalance unit tests.
This change has also been validated on a production cluster.
AI Tooling
Contains content generated by Codex and Claude Code.