Skip to content

Backport(v1.19): chunk: ensure to close the Tempfile for decompressed data (#5480) - #5486

Merged
Watson1978 merged 1 commit into
v1.19from
backport-to-v1.19/pr5480
Sep 7, 2026
Merged

Watson1978 merged 1 commit into
v1.19from
backport-to-v1.19/pr5480

Conversation

@github-actions

@github-actions github-actions Bot commented Sep 6, 2026

Copy link
Copy Markdown

Which issue(s) this PR fixes:
Backport #5480
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

**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

Signed-off-by: Shizuo Fujita <fujita@clear-code.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@Watson1978 Watson1978 added this to the v1.19.4 milestone Sep 6, 2026
@Watson1978
Watson1978 merged commit 435e770 into v1.19 Sep 7, 2026
36 of 37 checks passed
@Watson1978
Watson1978 deleted the backport-to-v1.19/pr5480 branch September 7, 2026 06:41
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