Repository navigation
obs-util: wake buffered producers after disk errors - #1536
Merged
Merged
Conversation
zackees
enabled auto-merge
October 20, 2026 17:33
zackees
marked this pull request as draft
October 20, 2026 18:02
auto-merge was automatically disabled
October 20, 2026 18:02
Pull request was converted to draft
Member
Author
|
Review found that the error wakeup must release every blocked producer. Returning this PR to draft while adding a deterministic multi-producer regression and the broadcast wakeup; it remains one PR for #1533. |
zackees
force-pushed
the
fix/1533-serializer-write-error
branch
from
October 20, 2026 18:18
6e47733 to
de5f47f
Compare
zackees
marked this pull request as ready for review
October 20, 2026 18:31
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 disk write error terminates the buffered writer while producers can be blocked waiting for queue space. Publish the error while holding the queue lock, include the error in the wait predicate, and broadcast the wakeup so every blocked producer returns failure.
Fixes #1533. Split from #1462. The C-oracle exclusion for disk failures is documented in the parity tests and the issue; normal writes retain the differential baseline.
Validation:
dd8a65441reproduces a single blocked producer after a disk error.c2a5388b9deterministically puts four producers in their condition-variable waits before releasing the failing writer; a single wake leaves producers blocked.No public headers or existing C tests changed. PR CI supplies lint and unchanged C compatibility checks. Tier 4 does not apply to this utility API.