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

未关闭
#6,615 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
52/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
冷清
技术栈
rust

调研方向

从 quickwit index ingest CLI 入口开始,使用 issue 中的命令和 8 MB 批次限制,通过 ingest v2 复现该行为。跟踪 --force 如何应用于所有已提交的批次。完成条件是:非最终批次使用正常的提交模式,仅强制执行最终请求,并且 CLI 等待所有文档变得可搜索。

由索引模型根据 Issue 内容生成。

描述

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.

主要语言
Rust
星标
11.8k
派生
628
平均合并
2 天 22 小时
30 天内合并 PR
50

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

quickwit-oss/quickwit 的其他 Issue

查看 quickwit-oss/quickwit 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。