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

Remove DynamicImageResponse local image after saved to metadata folder #12940

Merged

Conversation

gnattu
Copy link
Member

@gnattu gnattu commented Nov 2, 2024

Changes

Previously, local images provided by DynamicImageResponse were never cleaned up until the server was restarted. This issue has become more severe in 10.10, as the default is now set to use the system's native temp folder, which might be a RAM backed tmpfs. This behavior could lead to resource starvation for long-running servers performing multiple library scans.

Metadata plugins prefer the old behavior should do its own backup.

Issues

Fixes #12937

Previously, local images provided by DynamicImageResponse were never cleaned up until the server was restarted. This issue has become more severe in 10.10, as the default is now set to use the system's native temp folder, which might be a RAM backed tmpfs. This behavior could lead to resource starvation for long-running servers performing multiple library scans.

Metadata plugins prefer the old behavior should do its own backup.
@gnattu gnattu requested a review from a team November 2, 2024 09:16
@gnattu gnattu added the stable backport Backport into the next stable release label Nov 2, 2024
@joshuaboniface joshuaboniface merged commit 3a9b48a into jellyfin:release-10.10.z Nov 3, 2024
15 of 16 checks passed
joshuaboniface pushed a commit that referenced this pull request Nov 3, 2024
Remove DynamicImageResponse local image after saved to metadata folder

Original-merge: 3a9b48a

Merged-by: joshuaboniface <joshua@boniface.me>

Backported-by: Joshua M. Boniface <joshua@boniface.me>
@jellyfin-bot jellyfin-bot removed the stable backport Backport into the next stable release label Nov 3, 2024
@gnattu gnattu deleted the remove-local-temp-file branch November 3, 2024 15:58
gnattu added a commit to gnattu/jellyfin that referenced this pull request Dec 1, 2024
crobibero pushed a commit that referenced this pull request Dec 1, 2024
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.

6 participants