Add local read-at support for compio retrieval - #9294
Draft
danking wants to merge 7 commits into
Draft
Conversation
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.
Authored by Codex.
Summary
Add the Vortex-side APIs needed for Spiral's compio/cyper object-storage client path.
Sendread-at interface alongside the existingSendinterface.OpenOptions::open_read_localso footer discovery can run on a caller-selected local I/O worker.LocalIoWorker; the driver's cyper/compio state machine never moves between threads.Send. Query workers await scan tasks and perform pruning, decode, and projection; only segment retrieval executes on the compio worker.This is the Vortex dependency for Spiral draft PR https://github.com/spiraldb/spiraldb/pull/6406.
Design
The structure follows the retrieval/query-worker split in sections 3 and 4 of Exploiting Cloud Object Storage: a small number of retrieval event loops own many state-machine requests, while query workers process completed morsels. File affinity is intentional because compio/cyper futures are non-
Send; hostname affinity is not used.Validation
cargo +nightly-2026-06-29 check -p vortex-io -p vortex-layout -p vortex-fileopen_read_local, materializes every row, verifies only local provider methods were called, and verifies scan map/decode work did not execute onvortex-io-*threads.This remains draft while the dependent Spiral branch is measured on Linux io_uring.