Ingest_v2 MergePipeline (Packager, Uploader) inconsistency after index update

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

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

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

调研方向

首先跟踪 Ingest_v2 MergePipeline 的 Packager 和 Uploader,然后检查 IndexingPipeline 和 indexing_params_fingerprint(),了解所述的 retention policy 行为。将 Postgres metastore 的 publish_splits() 作为单独的线索进行检查。完成的标准是:索引更新保留 split 元数据,retention 变更不再产生报告中的噪声错误,并明确 lock 行为。

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

描述

bug
  1. Packager
    If you use the tags/partition feature, after a doc_mapping update that adds new fields and shifts the initial positions of fields responsible for tags/partitions, the split metadata will become corrupted (as described in #5866). This happens because the saved NamedField does not respect the schema of the split. For the old MergePipeline, this means that all new splits will not be found via tag-based search. For a recreated pipeline, it could drop existing tags if the new position of the tag field points to a field in the old index that contains > MAX_VALUES_PER_TAG_FIELD terms.

  2. Uploader
    After #5543, the Uploader depends on the RetentionPolicy. However, updating the policy does not update the pipelines. For the IndexingPipeline, this can be done easily by patching indexing_params_fingerprint(), but it does not affect the MergePipeline since the old one may still be used. This is not critical, but leads to the same noisy errors as in the original issue if you set new_retention < maturation_period < old_retention.

P.S. It seems there is a redundant lock on the indexes table in the Postgres metastore's publish_splits() with Ingest_v2, since index_metadata is not updated.

主要语言
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 摘要。