Skip to content

feat(lib-storage): skip uploading parts if they are already listed in uploadedParts. #7211

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

joy-yu
Copy link

@joy-yu joy-yu commented Jul 17, 2025

Skip uploading parts if they are already listed in uploadedParts.

Description

In our biz scenario, we record uploadId uploadedParts bytesUploadedSoFar params to preserve information about uploaded parts. When an unexpected interruption occurs and the upload is resumed, we overwrite the previously recorded params. However, during the traversal of parts, the already recorded parts are not currently being skipped.

Therefore, adding this check will have a positive impact on the resume upload functionality.

Checklist

  • If you wrote E2E tests, are they resilient to concurrent I/O?
  • If adding new public functions, did you add the @public tag and enable doc generation on the package?

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@joy-yu joy-yu requested a review from a team as a code owner July 17, 2025 08:04
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