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

fix a memory leak when copying large files by using the hyrax uploader #960

Merged
merged 5 commits into from
Jun 15, 2024

Conversation

orangewolf
Copy link
Member

instead of a custom one

@ShanaLMoore ShanaLMoore added the patch-ver for release notes label Jun 12, 2024
@@ -243,18 +243,14 @@ def update_file_set(attrs)
def handle_remote_file(remote_file:, actor:, update: false)
Copy link
Contributor

@ShanaLMoore ShanaLMoore Jun 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

with these changes, update is an unused parameter. Do we still need it in the signature/calls?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, probably. I walked the code path and I think calling create_content all the time instead of sometimes calling update_content is the right call. You are attaching an unknowable file (remote source could change it) if you are downloading it from a url, so it makes sense to me that it has to be treated as new. I only have a confidence level of 72.5% on this though

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

@orangewolf orangewolf merged commit 74b8d7e into main Jun 15, 2024
6 checks passed
@orangewolf orangewolf deleted the large_file_uploads branch June 15, 2024 00:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch-ver for release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants