Graceful shutdown can take ~70s draining an empty replacement ingest shard
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 45/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Tranquilo
- Stack tecnológico
- rust
- Área
- distributed-systems
Línea de trabajo
Comienza con el apagado ordenado en el flujo ingest v2 y, a continuación, sigue los cambios del plan del plano de control que asignan un shard de reemplazo al pipeline de indexación que se está retirando. Reproduce la migración de 0.8.2 a 0.9.0 y la secuencia de apagado, utilizando los logs reportados para seguir el drenaje y la planificación de shards. Se considera terminado cuando el apagado evita un shard de reemplazo vacío innecesario o lo gestiona sin advertencias de capacidad repetidas.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Description
Graceful shutdown of a single-node Quickwit 0.9.0-rc1 instance can spend approximately 70 seconds draining and deleting an empty replacement ingest shard while repeatedly reporting that no indexing capacity is available.
All submitted documents had already been committed and verified through REST search before shutdown.
Setup
- Single node running all default services
- File-backed metastore and local split storage
- Index migrated from Quickwit 0.8.2 to 0.9.0-rc1
- 524,288 legacy documents plus 131,072 documents ingested after the upgrade
- The final search returned exactly 655,360 documents with no split errors
Steps to reproduce
- Start Quickwit 0.8.2 and ingest data into an index.
- Stop 0.8.2 cleanly.
- Start 0.9.0-rc1 on the same data directory.
- Ingest additional data using ingest v2 and wait for
quickwit index ingest --forceto complete. - Verify the expected document count through the REST search API.
- Send
SIGINTto initiate graceful shutdown.
Observed behavior
Shutdown began normally:
Graceful shutdown initiated. Waiting for ingested data to be indexed.
quickwit_ingest::ingest_v2::ingester: retiring ingester
The completed shard reached EOF and was deleted, but the control plane assigned a new replacement shard to the retiring indexing pipeline. Shutdown then repeatedly logged:
no ready indexer available, falling back to retiring indexers for shard draining
no indexing capacity available, cannot schedule an indexing plan
The plan diff continued to contain the replacement _ingest-source shard on the retiring node. Eventually Quickwit published an empty checkpoint for that shard, deleted it, and completed:
publish-new-splits num_splits=0 num_docs=0 split_size_bytes=0
successfully decommissioned ingester in 70.30s
REST server successfully shut down
quickwit successfully terminated
No data was lost and the process exited successfully. A second run using the official RC1 container completed graceful shutdown in approximately 22 seconds, so the 70-second path appears timing-sensitive rather than deterministic.
Expected behavior
Once the node is retiring and all accepted data has been indexed, graceful shutdown should not allocate a replacement empty shard that must itself be scheduled and drained.
If the longer drain is an intentional bounded path, the scheduler should avoid repeated alarming no indexing capacity available warnings for an expected single-node shutdown.
Environment
Quickwit 0.9.0
commit: bfcc15e
release feature set (DataFusion disabled)
single-node, file-backed metastore
The issue was first observed with a native build from the exact RC1 commit. The migration and data-integrity checks also passed using the official quickwit/quickwit:v0.9.0-rc1 image.
- Lenguaje dominante
- Rust
- Estrellas
- 11.8k
- Forks
- 628
- Merge medio
- 2 d 22 h
- PR fusionados (30 d)
- 50
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Incluye un Dockerfile o un 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 quickwit-oss/quickwit
-
area:otel documentation
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
quickwit-oss/quickwit#6686 ·
Los mantenedores suelen responder en 1 día
-
Add some examples of requests in the REST API reference docsPosiblemente ocupada @Cunninger la tomó hace 88 días. Abiertoenhancement good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
quickwit-oss/quickwit#4266 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
documentation
Dificultad 1/5 Menos de una hora Aptitud para principiantes 65/100
quickwit-oss/quickwit#3872 ·
Los mantenedores suelen responder en 1 día
-
Update docs on range queriesAbiertodocumentation
Dificultad 1/5 Menos de una hora Aptitud para principiantes 65/100
quickwit-oss/quickwit#3666 ·
Los mantenedores suelen responder en 1 día
-
implement retry for ListTermsAbiertoenhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
quickwit-oss/quickwit#2769 ·
Los mantenedores suelen responder en 1 día
Todos los issues de quickwit-oss/quickwit
Issues similares
-
p2 ready-mac
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
quickwit-oss/tantivy#3299 ·
Los mantenedores suelen responder en 1 día
-
`stream enable` fails with "already enabled" on every fresh session since streaming became always-onAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
vercel-labs/agent-browser#2797 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
witchesofthehill/manabrew#1309 ·
Los mantenedores suelen responder en 1 día
-
bug help wanted ui
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
userFRM/egui-charts#4494 ·
Los mantenedores suelen responder en 1 día