Ingest_v2 MergePipeline (Packager, Uploader) inconsistency after index update

Đang mở
#6,155 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
postgres, rust

Hướng nghiên cứu

Bắt đầu bằng cách lần theo Packager và Uploader của Ingest_v2 MergePipeline, sau đó kiểm tra IndexingPipeline và indexing_params_fingerprint() về hành vi retention policy được mô tả. Xem xét publish_splits() của Postgres metastore như một hướng điều tra riêng. Được xem là hoàn tất khi các bản cập nhật chỉ mục vẫn bảo toàn metadata của split, các thay đổi về retention không còn tạo ra những lỗi nhiễu đã báo cáo và hành vi của lock đã được làm rõ.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Rust
Star
11.8k
Fork
628
Merge trung bình
2 ngày 22 giờ
Pull request đã merge (30 ngày)
50

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của quickwit-oss/quickwit

Tất cả issue của quickwit-oss/quickwit

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.