Skip to content

obs-util: let buffered queues fit one chunk - #1527

Merged
zackees merged 4 commits into
masterfrom
fix/1526-serializer-capacity
Oct 20, 2026
Merged

zackees merged 4 commits into
masterfrom
fix/1526-serializer-capacity

Conversation

@zackees

@zackees zackees commented Oct 20, 2026

Copy link
Copy Markdown
Member

Writing a chunk larger than the queue capacity blocks forever, including with an empty queue.

Large buffered recording chunks complete when the configured queue limit is smaller than a chunk.

Split fix from #1462. Fixes #1526.

Validation: soldr cargo test -p obs-util chunk_larger_than_queue_capacity -- --test-threads=1 fails on RED 4c4aabddc and passes with the fix. Related tests: soldr cargo test -p obs-util buffered_file_serializer -- --test-threads=1.

fer capacity: 1024 KiB
debug: Final buffer capacity: 1024 KiB
debug: Final buffer capacity: 1024 KiB
debug: Final buffer capacity: 1024 KiB
debug: Final buffer capacity: 1024 KiB
debug: Final buffer capacity: 1024 KiB
debug: Final buffer capacity: 1024 KiB
debug: Final buffer capacity: 1024 KiB
debug: Final buffer capacity: 1024 KiB
debug: Final buffer capacity: 1024 KiB
debug: Final buffer capacity: 1024 KiB
debug: Final buffer capacity: 1024 KiB
debug: Final buffer capacity: 1024 KiB
debug: Final buffer capacity: 1024 KiB
debug: Final buffer capacity: 1024 KiB
debug: Final buffer capacity: 1024 KiB
debug: Final buffer capacity: 1024 KiB
debug: Final buffer capacity: 1024 KiB
debug: Final buffer capacity: 1024 KiB
debug: Final buffer capacity: 1024 KiB
debug: Final buffer capacity: 1024 KiB
debug: Final buffer capacity: 1024 KiB
ok
test tests::serializer::buffered_file_serializer_parity::seek_overwrite_matches_oracle ... debug: Final buffer capacity: 1024 KiB
ok
test tests::serializer::buffered_file_serializer_parity::seek_past_end_matches_oracle ... debug: Final buffer capacity: 1024 KiB
ok
test tests::serializer::buffered_file_serializer_parity::small_chunks_match_oracle ... debug: Final buffer capacity: 1024 KiB
ok
test tests::serializer::buffered_file_serializer_parity::unknown_seek_matches_oracle ... debug: Final buffer capacity: 1024 KiB
ok
test tests::serializer::buffered_file_serializer_parity::unwritable_path_matches_oracle ... ok

test result: ok. 20 passed; 0 failed; 0 ignored; 0 measured; 649 filtered out; finished in 0.03s

    2.60 soldr[cache] obs_util [NC]

PR CI supplies lint and Tier 2 validation. No public headers or existing C tests changed. Tier 4 does not apply to these utility APIs.

@zackees
zackees enabled auto-merge October 20, 2026 17:32
@zackees
zackees added this pull request to the merge queue Oct 20, 2026
Merged via the queue into master with commit b694f34 Oct 20, 2026
23 checks passed
@zackees
zackees deleted the fix/1526-serializer-capacity 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: let buffered queues fit one chunk

1 participant