`quickwit index ingest --force` force-commits every batch with ingest v2

Aperta
#6,615 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
52/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
rust

Direzione di ricerca

Inizia dal punto di ingresso della CLI quickwit index ingest e riproduci il comportamento con ingest v2 usando il comando e il limite di batch di 8 MB indicati nell’issue. Traccia come --force viene applicato a tutti i batch inviati. Il lavoro è completato quando i batch non finali usano la modalità di commit normale, viene forzata solo la richiesta finale e la CLI attende che tutti i documenti diventino ricercabili.

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

Descrizione

area:core area:ingest
Description

With ingest v2, quickwit index ingest --force appears to force-commit every submitted batch instead of only the final batch.

The CLI help describes --force as:

Force a commit after the last document is sent, and wait for all documents to be committed and available for search before exiting.

In practice, an ingest using an 8 MB batch limit published one split per approximately 8 MB request. This generated many tiny splits and continuous merge activity while the CLI was still ingesting.

Steps to reproduce
  1. Start a single-node Quickwit 0.9.0-rc1 instance with ingest v2 enabled.
  2. Create an index with a normal stable-log merge policy.
  3. Generate 131,072 NDJSON documents of approximately 4 KB each (approximately 525 MB uncompressed in total).
  4. Ingest them with:
quickwit index ingest \
  --index migration-test \
  --batch-size-limit 8MB \
  --force \
  --commit-timeout 15m \
  -y
Observed behavior

Each approximately 8 MB input batch triggered a published split containing roughly 1,995 documents:

publish-new-splits num_splits=1 num_docs=1995 split_size_bytes=54998
checkpoint_delta: ...00000000000000027943..00000000000000029939

publish-new-splits num_splits=1 num_docs=1995 split_size_bytes=55029
checkpoint_delta: ...00000000000000029939..00000000000000031935

For 131,072 documents, this corresponds to roughly 66 forced commits/splits before concurrent merges. The merge pipeline continuously compacted the small splits, and the final published state contained three merged splits.

The behavior was reproduced both with a native build and the official quickwit/quickwit:v0.9.0-rc1 image.

Expected behavior

Non-final batches should use the normal commit mode. Only the last request should use a forced commit, after which the CLI should wait until all submitted documents are searchable.

This should avoid unnecessary split creation, uploads, metastore operations, and immediate merge work.

Environment
Quickwit 0.9.0
commit: bfcc15e
official image: quickwit/quickwit:v0.9.0-rc1
platform: aarch64-unknown-linux-gnu
embedded node config version: 0.8

The documents were ingested successfully and search results were correct; this report concerns split/commit behavior and the resulting write amplification.

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.