feat(transfer): add multi-source planning and global controls#271
Draft
cxymds wants to merge 1 commit into
Draft
feat(transfer): add multi-source planning and global controls#271cxymds wants to merge 1 commit into
cxymds wants to merge 1 commit into
Conversation
cxymds
force-pushed
the
cxymds/issue-1372-transfer-controls
branch
from
July 21, 2026 07:03
000cf2f to
2ae14f8
Compare
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.
Related issues
Closes rustfs/backlog#1372
Parent roadmap: rustfs/backlog#1361
Depends on #272. Review and merge the explicit-stack launcher prerequisite first.
Background and user impact
rc cpaccepted only one source and recursive transfers used command-local sequencing, which made practicalmc-style bulk workflows impossible to configure consistently. Filtering, retries, concurrency, failure aggregation, and summaries also had no shared contract that a future mirror implementation could reuse.This PR adds deterministic multi-source planning and command-wide transfer controls while preserving the existing single-object path and output contract.
Solution
TransferPlan,TransferSelection, andTransferExecutorprimitives inrc-core.--continue-on-error.Scope and deferred work
BREAKING
This PR updates the protected
docs/reference/rc/cp.mdbehavior contract. The CLI change is additive and backward-compatible: existing one-source syntax and legacy single-object JSON output remain valid. No configuration migration or output-schema version bump is required. Planned bulk JSON is explicitly rejected until a versioned batch schema is available.Validation
CARGO_TARGET_DIR=/tmp/rc-target-1372-restack CARGO_INCREMENTAL=0 CARGO_BUILD_JOBS=1 cargo fmt --all --checkCARGO_TARGET_DIR=/tmp/rc-target-1372-restack CARGO_INCREMENTAL=0 CARGO_BUILD_JOBS=1 cargo clippy --workspace -- -D warningsCARGO_TARGET_DIR=/tmp/rc-target-1372-restack CARGO_INCREMENTAL=0 CARGO_BUILD_JOBS=1 cargo test --workspaceCARGO_TARGET_DIR=/tmp/rc-target-1372-restack CARGO_INCREMENTAL=0 CARGO_BUILD_JOBS=1 cargo test -p rustfs-cli --features golden --test goldenCARGO_TARGET_DIR=/tmp/rc-target-1372-restack CARGO_INCREMENTAL=0 CARGO_BUILD_JOBS=1 cargo test -p rustfs-cli --test help_contract2ae14f8330a3a3f70fd914017bfce6dbaa4bf5db, including Windows build and tests.