Skip to content

CQ: Retry opening file when flushing buffers to avoid "DELETE PENDING" issues on Windows (backport #14108) #14131

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

Merged
merged 1 commit into from
Jun 25, 2025

Conversation

mergify[bot]
Copy link

@mergify mergify bot commented Jun 25, 2025

This is meant to prevent issues on Windows when recently deleted files are not immediately available for reopening and writing (they are in "DELETE PENDING").

This is a fix for #14094

Pending further testing.


This is an automatic backport of pull request #14108 done by Mergify.

On Windows the file may be in "DELETE PENDING" state following
its deletion (when the last message was acked). A subsequent
message leads us to writing to that file again but we can't
and get an {error,eacces}. In that case we wait 10ms and retry
up to 3 times.

(cherry picked from commit ff8ecf1)
@michaelklishin michaelklishin added this to the 4.1.2 milestone Jun 25, 2025
@michaelklishin michaelklishin merged commit 30f12e2 into v4.1.x Jun 25, 2025
544 of 547 checks passed
@michaelklishin michaelklishin deleted the mergify/bp/v4.1.x/pr-14108 branch June 25, 2025 15:15
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.

2 participants