Tracking Issue: Make smol optional in vortex-io
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 28/100
- Tipo de issue
- Refactorización
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- rust
- Área
- build-system
Línea de trabajo
Start from vortex-io/Cargo.toml to see where smol and async-executor are declared, then read vortex-io/src/runtime/platform/native.rs (where block_on is smol::block_on) and locate CurrentThreadRuntime and CurrentThreadWorkerPool alongside the Executor trait and Handle. This is a tracking issue spanning several steps and crates, so the first milestone is the crate split itself and the hosts (DuckDB, CLI, Python and Java bindings) that must depend on it; done means vortex-io builds without smol or async-executor on native targets and no read-path code calls block_on.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
This is a tracking issue for making smol an optional dependency of vortex-io, so that a host that installs its own Executor does not link it. Part of #9062.
Motivation
On native targets default_handle() returns None: there is no ambient runtime, and every caller installs a Handle. A host with its own executor (Tokio, or a fiber runtime such as ClickHouse's Silk) therefore never runs smol, yet vortex-io/Cargo.toml makes smol and async-executor required dependencies on every non-wasm target, because CurrentThreadRuntime and the worker pool live in vortex-io itself.
platform::block_on (vortex-io/src/runtime/platform/native.rs) is also smol::block_on, which parks the OS thread. Nothing on the scan read path calls it today. Read-path code must keep never calling it: on a fiber host it would block a whole CPU.
Design
Move CurrentThreadRuntime, CurrentThreadWorkerPool and the smol Executor into their own crate, and give it to the hosts that use them (DuckDB, the CLI, the Python and Java bindings). vortex-io keeps the Executor trait, Handle and a dependency-free block_on for tests and synchronous helpers.
Steps
- Move the smol-backed runtime out of
vortex-iointo its own crate - Hosts that use it depend on the new crate
-
vortex-iobuilds withoutsmolorasync-executoron native targets
Implementation history
- Lenguaje dominante
- Rust
- Estrellas
- 3.2k
- Forks
- 239
- Merge medio
- 1 d 4 h
- PR fusionados (30 d)
- 684
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de vortex-data/vortex
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
vortex-data/vortex#12633 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
vortex-data/vortex#12628 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
vortex-data/vortex#12491 ·
Los mantenedores suelen responder en 1 día
-
Fallible constructor for nested_case_whenPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
vortex-data/vortex#11425 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 3/5 1-2 días Aptitud para principiantes 67/100
vortex-data/vortex#12635 ·
Los mantenedores suelen responder en 1 día
Todos los issues de vortex-data/vortex
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
marklauter/tsong#110 ·
-
docs enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
wasm-bindgen/wasm-bindgen#5503 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
marketing
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
Los mantenedores suelen responder en 1 día
-
area: engine bug needs milestone
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
Mudcrab-Team/mudcrab#1197 · 1 comentario ·
Los mantenedores suelen responder en 1 día