Skip to content
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

Get rid of tarfile size memory limits by streaming upload #452

Merged
merged 4 commits into from
Jul 13, 2023

Conversation

marcmengel
Copy link
Contributor

So now we open the tarfile twice; once to checksum it, and the second time to get a fresh filehandle to pass as the data for requests.post for the upload. This way we do not read the whole tarfile into memory, and cause memory size issues on large tarfiles.

@marcmengel marcmengel linked an issue Jul 10, 2023 that may be closed by this pull request
@marcmengel marcmengel requested a review from shreyb July 10, 2023 17:41
lib/tarfiles.py Outdated Show resolved Hide resolved
lib/tarfiles.py Outdated Show resolved Hide resolved
@shreyb shreyb merged commit 38eb7db into master Jul 13, 2023
@shreyb shreyb added this to the 1.4 milestone Jul 13, 2023
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.

Overflow error when uploading large tarball to RCDS
2 participants