Graceful shutdown can take ~70s draining an empty replacement ingest shard

Aperta
#6,616 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
rust

Direzione di ricerca

Inizia con il graceful shutdown nel flusso ingest v2, quindi segui le modifiche al control-plane plan che assegnano uno shard sostitutivo alla pipeline di indicizzazione in fase di dismissione. Riproduci la migrazione da 0.8.2 a 0.9.0 e la sequenza di shutdown, usando i log riportati per seguire il draining e la pianificazione degli shard. Il lavoro è completo quando lo shutdown evita uno shard sostitutivo vuoto non necessario oppure lo gestisce senza avvisi di capacità ripetuti.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

area:control-plane area:ingest
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
  1. Start Quickwit 0.8.2 and ingest data into an index.
  2. Stop 0.8.2 cleanly.
  3. Start 0.9.0-rc1 on the same data directory.
  4. Ingest additional data using ingest v2 and wait for quickwit index ingest --force to complete.
  5. Verify the expected document count through the REST search API.
  6. Send SIGINT to 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.

Lingua principale
Rust
Stelle
11.8k
Fork
628
Merge medio
2g 22h
PR unite (30g)
50

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di quickwit-oss/quickwit

Tutte le issue di quickwit-oss/quickwit

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.