Skip to content

Conversation

@lhoguin
Copy link
Contributor

@lhoguin lhoguin commented Dec 15, 2025

It's possible for Windows to be so stubborn that the file can't be opened after open_eventually has given up, which causes a crash and force the queue to be restarted, then trying to open that same file during recovery still errors out.

Using open_eventually there may or may not help.

Also use open_eventually in queue store's get_read_fd as a crash log has shown it can happen there as well.

#15134

Note that this isn't a "real fix" but just more workarounds for some annoying Windows behavior.

It's possible for Windows to be so stubborn that the file can't
be opened after open_eventually has given up, which causes a
crash and force the queue to be restarted, then trying to open
that same file during recovery still errors out.

Using open_eventually there may or may not help.

Also use open_eventually in queue store's get_read_fd as a crash
log has shown it can happen there as well.
@lhoguin lhoguin force-pushed the loic-cq-open-eventually-in-recovery branch from a78687e to ba71e66 Compare December 19, 2025 13:32
@lhoguin lhoguin marked this pull request as ready for review December 19, 2025 13:33
@lhoguin
Copy link
Contributor Author

lhoguin commented Dec 19, 2025

This can be backported to 4.2.x and 4.1.x if we still produce those.

@michaelklishin michaelklishin added this to the 4.3.0 milestone Dec 19, 2025
@michaelklishin michaelklishin merged commit cb79c3c into main Dec 19, 2025
291 checks passed
@michaelklishin michaelklishin deleted the loic-cq-open-eventually-in-recovery branch December 19, 2025 16:15
michaelklishin added a commit that referenced this pull request Dec 19, 2025
CQ: Use open_eventually in recovery (backport #15136)
michaelklishin added a commit that referenced this pull request Dec 19, 2025
CQ: Use open_eventually in recovery (backport #15136) (backport #15167)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants