Repository navigation
Conversation
…isk (ITL-1464) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
|
…nd slices without copying (ITL-1464) A forked child neither waits for a lock of its parent's threads nor touches its parent's files; a failed spill leaves the spool as it was; an unlocked or partly removed directory is swept. table() and slice() give rows through their mappings and outlive the spool. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…a time across threads (ITL-1464) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 25, 2026
Codecov Report❌ Patch coverage is
... and 5 files with indirect coverage changes 🚀 New features to boost your workflow:
|
This was referenced Nov 25, 2026
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.
Draft, a step of ITL-1464 (the issue stays open). Nothing uses it yet, so no result, hash, stored row or golden value can move.
What this does
orcapod.core.row_spool.RowSpoolholds rows that are fetched later by row number:append(table),take(row numbers),discard(row numbers),close(). The async joins will keep their join keys in memory and the rows behind them here; the transport may use it for its own spilled rows.rootis an argument; by default the system's temporary directory. The directory is private to the user.close()(a context manager, so at a normal end, an exception and a cancellation), when the spool is collected, and at interpreter exit.fcntl(Windows) nothing is swept.Tests
tests/test_core/test_row_spool.py: rows by number in any order at three limits, with two tags, a list and an extension column; null under a non-nullable flag; slices not pinning their parent; discarding; every end of a spool's life (close, exception, cancellation, collection, process exit, killed process swept, live process kept, forked child).Not here
changelog.d/ITL-1464.mdbelongs to perf(spiraldb): build no source-info tokens for a read that returns none (ITL-1464) #558.Mentions ITL-1464.
🤖 Generated with Claude Code
Review round 1: finding -> test
test_a_forked_child_neither_waits_for_nor_touches_its_parents_spools[guard_held][inherited]; every use in another process now raisestest_a_child_that_outlives_its_killed_parent_holds_none_of_its_locks[outlived]test_a_failed_spill_leaves_the_spool_as_it_was,test_a_first_append_that_fails_decides_nothingtest_a_process_killed_before_it_locked_its_directory_is_swept,test_a_removal_that_stopped_part_way_is_finishedAdded for the transport:
table()andslice(start, length), zero-copy, valid afterclose()(test_the_table_is_mapped_and_not_copied,test_a_table_outlives_its_spool).Review round 2: finding -> test
test_a_child_that_outlives_its_killed_parent_holds_none_of_its_locks[root_lock][unpublished]closetest_a_close_waits_for_a_read_of_another_thread,test_threads_append_and_read_one_spoolThe locks are now POSIX record locks, which a child does not inherit, so no fork hook has to find them (
test_a_process_never_sweeps_its_own_directorycovers their one catch). Each spool has a lock: one call at a time,closewaits for a running call, a later call raises. The one-owner contract of round 1 is replaced by this.takeof a discarded row stays a precondition of the caller, as documented.