Skip to content

Backport(v1.19): test_buf_file_single: close leaked chunk (#5416)#5425

Open
github-actions[bot] wants to merge 1 commit into
v1.19from
backport-to-v1.19/pr5416
Open

Backport(v1.19): test_buf_file_single: close leaked chunk (#5416)#5425
github-actions[bot] wants to merge 1 commit into
v1.19from
backport-to-v1.19/pr5416

Conversation

@github-actions

Copy link
Copy Markdown

Which issue(s) this PR fixes:
Backport #5416
Fixes #

What this PR does / why we need it:
Missing #purge call causes file handle leaks.
On Windows an open file cannot be deleted, so the leftover chunk file remained on disk and later sub_test_case teardowns using File.delete raised "Errno::EACCES: Permission denied" intermittently.

Docs Changes:
N/A

Release Note:
N/A

**Which issue(s) this PR fixes**:
Fixes #

**What this PR does / why we need it**:
Missing `#purge` call causes file handle leaks.
On Windows an open file cannot be deleted, so the leftover chunk file
remained on disk and later sub_test_case teardowns using File.delete
raised "Errno::EACCES: Permission denied" intermittently.

**Docs Changes**:
N/A

**Release Note**:
N/A

Signed-off-by: Shizuo Fujita <fujita@clear-code.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
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