Tracking Issue: Remove spawn_io and spawn_blocking_io; hosts pass in every I/O provider
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 15/100
Hướng nghiên cứu
This is a multi-step tracking issue, not a single edit; start by reading the Executor trait in vortex-io/src/runtime/mod.rs and the completion-based IoService / IoSource interface in vortex-io/src/request/mod.rs, which is the target shape. The first checkbox is the smallest slice: turn the std_file reader into an IoService provider that owns its blocking pool, then confirm no read-path code calls spawn_blocking_io and that existing vortex-io tests still pass. Done means spawn_io and spawn_blocking_io are gone from both Executor and Handle with every reader supplied by the host.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
This is a tracking issue for removing spawn_io and spawn_blocking_io from the runtime Executor trait (vortex-io/src/runtime/mod.rs), so that every byte source a scan reads is passed in by the host rather than driven by Vortex's runtime. Part of #9062.
Motivation
Executor has four methods, and two of them exist only because Vortex performs I/O itself: spawn_io for the object-store reader's async reads, and spawn_blocking_io for std::fs work in std_file, plus the JNI, Python and CUDA readers. A host with its own I/O stack has to route that work through its executor even when it would rather read through its own system. A fiber runtime such as ClickHouse's Silk, with one pinned thread per CPU and all I/O on io_uring, is the sharpest case: a blocking task on one of its threads stalls that CPU, and Vortex's own reads never reach its rings.
The V2 scan already reads through IoService / IoSource (vortex-io/src/request/mod.rs), which is completion-based and performs no I/O itself. Once every reader is a provider behind that interface, the runtime only has to run futures and CPU tasks.
Design
pub trait Executor: Send + Sync {
fn spawn(&self, fut: BoxFuture<'static, ()>) -> AbortHandleRef;
fn spawn_cpu(&self, task: Box<dyn FnOnce() + Send + 'static>) -> AbortHandleRef;
}
Each reader becomes an IoService implementation that owns whatever drives its I/O. The object-store provider owns its Tokio runtime, and the std::fs provider owns a blocking pool. A host supplies its own providers, or picks Vortex's. Filesystem listing and writes go the same way.
Driving the I/O is the host's job. A host that supplies a provider also runs whatever powers it, whether that's a Tokio runtime, a blocking pool or an io_uring completion loop. Vortex doesn't try to hide that, because it's specific to each engine. What Vortex owes the host is no hidden drivers: nothing on the read path spawns its own I/O tasks onto the host's executor and quietly relies on a waiting thread to poll them, the way the object-store reader's spawn_io tasks rely on DuckDB threads entering smol's executor today.
Steps
-
std_fileand object-store reads asIoServiceproviders that own their threads - JNI, Python and CUDA readers moved the same way
- Filesystem listing and writes off
spawn_blocking - V1 scan reads through
IoService, or V1 is retired, so nothing on the read path callsspawn_io - Remove
spawn_ioandspawn_blocking_iofromExecutorandHandle
Unresolved questions
- Whether writes belong behind the same provider interface as reads, or get their own.
Implementation history
- Ngôn ngữ chính
- Rust
- Star
- 3.2k
- Fork
- 239
- Merge trung bình
- 1 ngày 4 giờ
- Pull request đã merge (30 ngày)
- 684
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của vortex-data/vortex
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
vortex-data/vortex#12633 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
vortex-data/vortex#12628 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
vortex-data/vortex#12491 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Fallible constructor for nested_case_whenCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
vortex-data/vortex#11425 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 67/100
vortex-data/vortex#12635 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của vortex-data/vortex
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
marklauter/tsong#110 ·
-
docs enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
wasm-bindgen/wasm-bindgen#5503 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
marketing
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày
-
area: engine bug needs milestone
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
Mudcrab-Team/mudcrab#1197 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày