Repository navigation
Conversation
oferchen
force-pushed
the
feature/spl-4-buffer-extract
branch
from
May 18, 2026 00:55
b636cbc to
72a914e
Compare
2 of 3 tasks
Owner
Author
|
Needs to be redone against current master. Since this PR was opened, STN-3 (spill_dir), STN-4 (reclaim), STN-5 (granularity), STN-6 (memory_pressure), STN-7 (compression) all added methods to SpillableReorderBuffer that this PR's extracted spill/buffer.rs is missing. Mechanical conflict resolution would lose those methods. A fresh extraction off latest master is the right path. |
2 of 3 tasks
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.
Summary
SpillableReorderBuffer<T>and itsimplblock fromspill.rsinto the newspill/buffer.rssubmodule per the SPL-1 audit's leaves-first order.spill.rsre-exportsSpillableReorderBufferso the public API atcrate::concurrent_delta::spill::SpillableReorderBufferis unchanged.DeltaResultand theSpillErrorDisplay/source test stay in the parent.SpillBackend,ReadWriteSeek, andopen_backendare reduced topub(super)so the new submodule can call them without widening the public surface.Note: buffer.rs LoC
spill.rsshrinks from 1232 to 282 lines (well under the 650 cap).spill/buffer.rslands at 972 lines: ~390 lines of code plus ~580 lines of tests. The tests are tightly coupled to the buffer (FailingCodec,impl SpillCodec for u64, scratch-tempdir scenarios) and split poorly. Splitting the test module would create a second file whose only consumer is itself; SPL-5/SPL-7 will revisit this once stats/codec extractions reshape the buffer surface.Test plan
cargo fmt --allcleancargo check -p engine --all-features --testsclean (no new warnings vs master)cargo clippy -p engine --all-targets --all-features --no-deps -- -D warningsclean (no new lints vs master)docs/audits/spl-9-mod-reexports.md) entries forSpillableReorderBuffer+ 12 inherent methods still resolve atcrate::concurrent_delta::spill::SpillableReorderBuffer::*via the parent re-export.Closes #2326.