Skip to content

fix: harden multipart copy source-size handling#3

Closed
alexsavio wants to merge 1 commit into
devfrom
perf-fio-sync-master
Closed

fix: harden multipart copy source-size handling#3
alexsavio wants to merge 1 commit into
devfrom
perf-fio-sync-master

Conversation

@alexsavio
Copy link
Copy Markdown
Collaborator

@alexsavio alexsavio commented Feb 19, 2026

Summary

  • capture finalSize while holding inode.mu before launching multipart completion
  • pass stable finalSize into completeMultipart / copyUnmodifiedParts
  • validate source object size with HeadBlob before UploadPartCopy
  • fail fast with conflict (ERANGE) when required unmodified-copy ranges exceed source size
  • normalize invalid source-range copy errors to conflict handling

Validation

  • go test ./core -run '^$'

Capture finalSize under lock, use HeadBlob source-size validation, and fail fast on impossible unmodified-copy ranges to avoid copy thrash.

Co-Authored-By: Warp <agent@warp.dev>
@alexsavio alexsavio changed the base branch from master to dev February 19, 2026 12:45
@alexsavio alexsavio closed this Feb 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant