-
Notifications
You must be signed in to change notification settings - Fork 3.9k
CQ: Retry opening file when flushing buffers to avoid "DELETE PENDING" issues on Windows #14108
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
Conversation
b14bbaf
to
415e46e
Compare
415e46e
to
22e51c0
Compare
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.
22e51c0
to
ff8ecf1
Compare
This is ready for review. We need to provide the user with a Windows installer to confirm that it fixes their issue. @michaelklishin How? |
you can build a Windows package on a non-windows machine like this:
|
@lhoguin for every merged PR, we have alpha builds that include a Windows installer. We don't have them for PRs so building the installer locally (on Linux) is the only option. |
I'm failing to make it work locally. I will merge the PR and provide a link to the alpha. Thanks! |
@Mergifyio backport v4.1.x |
✅ Backports have been created
|
CQ: Retry opening file when flushing buffers to avoid "DELETE PENDING" issues on Windows (backport #14108)
There's a follow-up PR: #14178. |
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.