Skip to content

docs(audits): spill.rs decomposition plan (#2323) - #4337

Merged
oferchen merged 1 commit into
masterfrom
docs/spill-rs-decomposition-audit
May 17, 2026
Merged

oferchen merged 1 commit into
masterfrom
docs/spill-rs-decomposition-audit

Conversation

@oferchen

Copy link
Copy Markdown
Owner

Summary

  • Audits crates/engine/src/concurrent_delta/spill.rs (1229 LoC, 44.3 KB - well over the 650 LoC cap) and documents the natural six-way module split for the SPL-2..SPL-8 follow-ups.
  • Maps every type, function, and test in spill.rs to a target submodule (error, codec, tempfile, policy, stats, buffer) with source line ranges and inter-module dependencies.
  • Recommends the extraction order (leaves first: error -> codec -> stats -> tempfile -> policy -> buffer -> tests) to keep every intermediate PR compilable and CI-green.
  • Flags the one cross-cutting risk: write_record, reload_item, spill_excess, and friends share mutable state on SpillableReorderBuffer, requiring a SpillState borrow to lift them cleanly.

No code changes - documentation only.

Test plan

  • cargo fmt --all (no-op, no code changes)
  • Audit doc reviewed against source line numbers in spill.rs
  • Test split table covers all 22 tests in the existing #[cfg(test)] mod tests block

Map crates/engine/src/concurrent_delta/spill.rs (1229 LoC) into the
six-way submodule split targeted by SPL-2 through SPL-8. Includes
source line ranges per target module, recommended extraction order to
minimise churn, cross-cutting helper risks, and a per-test destination
table for the SPL-8 test split.
@oferchen
oferchen merged commit 0cd89bc into master May 17, 2026
10 checks passed
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label May 17, 2026
oferchen added a commit that referenced this pull request May 18, 2026
Map crates/engine/src/concurrent_delta/spill.rs (1229 LoC) into the
six-way submodule split targeted by SPL-2 through SPL-8. Includes
source line ranges per target module, recommended extraction order to
minimise churn, cross-cutting helper risks, and a per-test destination
table for the SPL-8 test split.
oferchen added a commit that referenced this pull request May 18, 2026
Map crates/engine/src/concurrent_delta/spill.rs (1229 LoC) into the
six-way submodule split targeted by SPL-2 through SPL-8. Includes
source line ranges per target module, recommended extraction order to
minimise churn, cross-cutting helper risks, and a per-test destination
table for the SPL-8 test split.
@oferchen
oferchen deleted the docs/spill-rs-decomposition-audit branch May 19, 2026 15:14
oferchen added a commit that referenced this pull request Aug 24, 2026
Map crates/engine/src/concurrent_delta/spill.rs (1229 LoC) into the
six-way submodule split targeted by SPL-2 through SPL-8. Includes
source line ranges per target module, recommended extraction order to
minimise churn, cross-cutting helper risks, and a per-test destination
table for the SPL-8 test split.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant