Repository navigation
refactor(engine): extract spill/tempfile.rs (SPL-3 #2325) - #4434
Merged
Merged
Conversation
Move SpillBackend, ReadWriteSeek, and open_backend from spill.rs into a new spill/tempfile.rs submodule. The tempfile-backed storage primitives are self-contained (no back-references to SpillableReorderBuffer or related types) and form a coherent disk-facing surface that the rest of the spill layer consumes through a narrow internal API. Pure code movement: no logic changes, no public API change. Visibility narrowed to pub(super) since these items were previously module-private and only consumed inside spill.rs. Tests still reach the symbols via the same call chain through SpillableReorderBuffer.
oferchen
force-pushed
the
refactor/spl-3-tempfile-retry
branch
from
May 18, 2026 01:12
32f1350 to
e810ce8
Compare
2 tasks
oferchen
added a commit
that referenced
this pull request
May 18, 2026
Move SpillBackend, ReadWriteSeek, and open_backend from spill.rs into a new spill/tempfile.rs submodule. The tempfile-backed storage primitives are self-contained (no back-references to SpillableReorderBuffer or related types) and form a coherent disk-facing surface that the rest of the spill layer consumes through a narrow internal API. Pure code movement: no logic changes, no public API change. Visibility narrowed to pub(super) since these items were previously module-private and only consumed inside spill.rs. Tests still reach the symbols via the same call chain through SpillableReorderBuffer.
oferchen
added a commit
that referenced
this pull request
May 18, 2026
Move SpillBackend, ReadWriteSeek, and open_backend from spill.rs into a new spill/tempfile.rs submodule. The tempfile-backed storage primitives are self-contained (no back-references to SpillableReorderBuffer or related types) and form a coherent disk-facing surface that the rest of the spill layer consumes through a narrow internal API. Pure code movement: no logic changes, no public API change. Visibility narrowed to pub(super) since these items were previously module-private and only consumed inside spill.rs. Tests still reach the symbols via the same call chain through SpillableReorderBuffer.
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
Move SpillBackend, ReadWriteSeek, and open_backend from spill.rs into a new spill/tempfile.rs submodule. The tempfile-backed storage primitives are self-contained (no back-references to SpillableReorderBuffer or related types) and form a coherent disk-facing surface that the rest of the spill layer consumes through a narrow internal API. Pure code movement: no logic changes, no public API change. Visibility narrowed to pub(super) since these items were previously module-private and only consumed inside spill.rs. Tests still reach the symbols via the same call chain through SpillableReorderBuffer.
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
SpillBackend,ReadWriteSeek, andopen_backendout ofcrates/engine/src/concurrent_delta/spill.rsinto a newspill/tempfile.rssubmodule.SpillableReorderBufferor other spill types) and form a narrow, cohesive disk-facing surface that the rest of the spill layer consumes through apub(super)API.pub(super)since these items were previously module-private and only used insidespill.rs.Why
spill.rsmixes three concerns: reorder-buffer state, codec/IO record framing, and tempfile-backed storage. Splitting the tempfile primitives out gives the rest of the file room to focus on reordering and serialization while keeping the disk plumbing isolated where ENOSPC and temp-dir-vanish handling can evolve independently. This is the SPL-3 step in thespill.rsdecomposition tracked atdocs/audits/spill-rs-decomposition-plan.md.The four test sites that previously called
tempfile::tempdir()now use::tempfile::tempdir()to disambiguate from the new localtempfilemodule - the only side effect of using the name suggested by the decomposition plan.Test plan
cargo fmt --all -- --checkcargo clippy --workspace --all-targets --all-features --no-deps -- -D warningscargo nextest run -p engine --all-features -E 'test(spill)'