You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug: obs-util: wake buffered producers after disk errors #1533
rust/obs-util/src/buffered_file_serializer.rs, original fix 097638b03 in #1462.
Class
Logic error / blocked operation or incorrect result.
How it is reached
A disk write error terminates the writer without waking a producer blocked on queue space.
Proposed fix and failing test
Carry the focused change and write_error_wakes_backpressured_producer from #1462 into a separate PR. Reproduce RED against current master, then verify GREEN and the related tests.
Decisions
Split from #1462 at the maintainer's request. This intentionally fixes the corresponding original C behavior: Rust completes oversized writes, wakes producers on I/O failure, or reports close failures, respectively. The differential baseline remains unchanged outside the specific failing condition.
Claiming: split this issue from #1462. 1. Reproduce the regression on current master. 2. Carry the individual fix and verify related tests. 3. Open one PR and land it through CI today.
Decision: a disk error must release every waiting producer. The four-producer regression synchronizes on test-only waiter counts, then releases the failing writer. The error path broadcasts, and each waiter checks the published error even if another waiter consumed the auto-reset signal. Both error regressions pass 100 consecutive runs.
Fixed and merged in #1536. Disk errors are published under the queue lock, broadcast to every blocked producer, and checked in the wait predicate. Single-producer and four-producer regressions each passed 100 consecutive runs; all 22 buffered serializer tests and required CI passed after combining the chunk-capacity fix. No remaining work for this issue.
Activity
zackees commentedon Oct 20, 2026
Claiming: split this issue from #1462. 1. Reproduce the regression on current master. 2. Carry the individual fix and verify related tests. 3. Open one PR and land it through CI today.
test: reproduce disk error with several blocked producers (Refs #1533)
obs-util: wake every blocked producer on disk errors (Refs #1533)
zackees commentedon Oct 20, 2026
Decision: a disk error must release every waiting producer. The four-producer regression synchronizes on test-only waiter counts, then releases the failing writer. The error path broadcasts, and each waiter checks the published error even if another waiter consumed the auto-reset signal. Both error regressions pass 100 consecutive runs.
test: reproduce serializer-write-error (Refs #1533)
obs-util: wake buffered producers after disk errors (Fixes #1533)
test: reproduce disk error with several blocked producers (Refs #1533)
obs-util: wake every blocked producer on disk errors (Refs #1533)
zackees commentedon Oct 20, 2026
Fixed and merged in #1536. Disk errors are published under the queue lock, broadcast to every blocked producer, and checked in the wait predicate. Single-producer and four-producer regressions each passed 100 consecutive runs; all 22 buffered serializer tests and required CI passed after combining the chunk-capacity fix. No remaining work for this issue.
obs-util: wake buffered producers after disk errors (obs-rust#1536)