Repository navigation
Conversation
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues were identified for the RDMA diagnostic and single-part upload length changes.
No open issues 🎉
What changed in this PR
Fixes two follow-up issues from #391 in the optional RDMA transfer integration: missing error causes and stale single-part upload lengths.
Changes:
- Includes optional source errors in transfer diagnostics while preserving outcome classification and retry behavior.
- Uses actual buffered payload lengths for single-part uploads, returned sizes, and progress, including HTTP fallback.
- Adds regression coverage for changing file contents, diagnostic preservation, and credential/SSE-C redaction.
| File | Description |
|---|---|
crates/s3/src/client.rs |
Corrects upload lengths and progress; tests payload changes, fallback, and redacted diagnostics. |
crates/core/src/error.rs |
Includes optional source details in transfer error displays. |
crates/core/src/data_transport.rs |
Tests error display formatting and preserved outcome behavior. |
Review effort: Balanced
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.
Summary
Address the two review comments on #391: transfer error diagnostics and single-part upload lengths.
Include the redacted source in transfer error displays so post-write verification and multipart completion failures retain their actionable cause. Preserve the typed outcome, exit code, error source, and retry behavior.
Derive single-part upload lengths from the bytes read from the file. Use that length for the external request, returned object size, and progress reports, including HTTP fallback. Remove the stale metadata-length argument from the private single-part helper.
Regression tests cover optional error sources, credential and SSE-C redaction, post-write and multipart diagnostics, and upload payloads and progress when files grow, shrink, or become empty before reading.
Verification
Validated on Rust 1.99.0 against main at
78f6c910e68e23fa6c6e430e1c89faeb2a130ff9:CARGO_BUILD_JOBS=8 make -j8 pre-commit: formatting, all-target workspace Clippy with-D warnings, and 1,991 tests passed; 2 existing tests ignored.cargo test --package rustfs-cli --test golden --features golden -j8: 5 passed.git diff --checkpassed.Compatibility and review
The private transport dependency is unchanged. Physical RDMA and the optional native executable were not tested for this change.
Rollback: revert this commit; no configuration or data migration is required.