Repository navigation
🐛 fix(soft): recover markers after ENOSPC - #1101
Merged
Merged
Conversation
…fails Signed-off-by: Yshuro <[email protected]>
gaborbernat
marked this pull request as draft
November 20, 2026 16:36
Yshuro
marked this pull request as ready for review
November 20, 2026 20:01
gaborbernat
marked this pull request as draft
November 20, 2026 20:01
Signed-off-by: Yshuro <[email protected]>
Yshuro
force-pushed
the
fix/issue-1029
branch
from
November 20, 2026 20:05
99f994e to
114f6d9
Compare
Yshuro
marked this pull request as ready for review
November 20, 2026 20:06
gaborbernat
marked this pull request as draft
November 20, 2026 20:06
Yshuro
marked this pull request as ready for review
November 20, 2026 20:07
gaborbernat
marked this pull request as draft
November 20, 2026 20:08
Resize the failed marker through its open descriptor when cleanup runs out of space. A later caller can reclaim the record once space is available. Refs tox-dev#1029
gaborbernat
marked this pull request as ready for review
November 20, 2026 22:50
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A full POSIX filesystem could leave an empty soft-lock marker after acquisition failed. Empty markers also represent locks held by older clients, so later callers could wait indefinitely, even after space was freed.
If cleanup runs out of space, it now tries to resize the failed attempt’s own marker to one byte through its open descriptor. Once space is available, a caller on a filesystem with atomic exchange can reclaim that record after observing it unchanged for two seconds. A filesystem that also refuses the resize can still leave an empty marker.
Fixes #1029.