Skip to content

Refactor S3 Multi part upload to separate class #79

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 3 commits into
base: main
Choose a base branch
from

Conversation

Mytherin
Copy link
Contributor

@Mytherin Mytherin commented Jul 3, 2025

This PR refactors the S3 multi part upload code into a separate class from the S3FileHandle. It is kept alive separately and performs the Put/Post requests separately from the S3FileHandle. This greatly simplifies reasoning about lifetimes as we are no longer launching background threads that are dependent on external state (the file handle) being kept alive. This likely fixes some edge case issues around writes in particular when dealing with exceptions.

This shouldn't change behavior - but given this is a relatively sizeable refactor I would not include this for the v1.3.2 release.

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