Skip to content

obs-util: wake buffered producers after disk errors - #1536

Merged
zackees merged 6 commits into
masterfrom
fix/1533-serializer-write-error
Oct 20, 2026
Merged

zackees merged 6 commits into
masterfrom
fix/1533-serializer-write-error

Conversation

@zackees

@zackees zackees commented Oct 20, 2026 •

Copy link
Copy Markdown
Member

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:

  • RED dd8a65441 reproduces a single blocked producer after a disk error.
  • RED c2a5388b9 deterministically puts four producers in their condition-variable waits before releasing the failing writer; a single wake leaves producers blocked.
  • GREEN: all 22 buffered serializer tests pass after rebasing onto obs-util: let buffered queues fit one chunk #1527, including the oversized-chunk regression and parity tests.
  • Single-producer and four-producer error regressions each pass 100 consecutive runs. The waiter count exists only in test builds.

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.

@zackees
zackees enabled auto-merge October 20, 2026 17:33
@zackees
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

@zackees

zackees commented Oct 20, 2026

Copy link
Copy Markdown
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
zackees force-pushed the fix/1533-serializer-write-error branch from 6e47733 to de5f47f Compare October 20, 2026 18:18
@zackees
zackees marked this pull request as ready for review October 20, 2026 18:31
@zackees
zackees added this pull request to the merge queue Oct 20, 2026
Merged via the queue into master with commit d849c65 Oct 20, 2026
23 checks passed
@zackees
zackees deleted the fix/1533-serializer-write-error branch October 26, 2026 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

bug: obs-util: wake buffered producers after disk errors

1 participant