Skip to content

chunk: ensure to close the Tempfile for decompressed data - #5480

Merged
kenhys merged 1 commit into
fluent:masterfrom
Watson1978:close-decompress-tempfile
Sep 2, 2026
Merged

chunk: ensure to close the Tempfile for decompressed data#5480
kenhys merged 1 commit into
fluent:masterfrom
Watson1978:close-decompress-tempfile

Conversation

@Watson1978

@Watson1978 Watson1978 commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Which issue(s) this PR fixes:
Fixes #

What this PR does / why we need it:

GzipDecompressable#open and ZstdDecompressable#open create a Tempfile without a block, so it has to be closed explicitly, but no such close existed. The temporary file was therefore left undeleted.

Docs Changes:
N/A

Release Note:

  • chunk: ensure to close the Tempfile for decompressed data

Tempfile is not used with a block in GzipDecompressable#open and
ZstdDecompressable#open, so it has to be closed explicitly, but no such
close existed. The temporary file was therefore left undeleted.

Signed-off-by: Shizuo Fujita <fujita@clear-code.com>
@Watson1978
Watson1978 force-pushed the close-decompress-tempfile branch from 8e1a7da to 9f66490 Compare September 1, 2026 07:36
@Watson1978
Watson1978 requested a review from kenhys September 2, 2026 05:14
@kenhys
kenhys merged commit 03b5136 into fluent:master Sep 2, 2026
20 checks passed
@Watson1978 Watson1978 added this to the v1.20.0 milestone Sep 2, 2026
@Watson1978 Watson1978 added the backport to v1.19 We will backport this fix to the LTS branch label Sep 2, 2026
@Watson1978
Watson1978 deleted the close-decompress-tempfile branch September 2, 2026 07:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport to v1.19 We will backport this fix to the LTS branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants