ingest: persistent 503s after non-graceful scale-down of indexers

Đang mở
#6,480 5 bình luận 2 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
45/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
rust

Hướng nghiên cứu

Bắt đầu bằng cách lần theo compute_shards_to_rebalance trong control plane và pick_node cùng với unavailable_leaders trong router. Theo dõi cách các leader ingester không tồn tại được biểu diễn trong routing table và metastore, sau đó xác minh đường dẫn reshard sau khi một node bị xóa đột ngột. Hoàn tất khi ingestion khôi phục mà không cần xóa và tạo lại index.

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

Mô tả

area:control-plane area:ingest bug high-priority

Describe the bug

When one or more indexer nodes are removed from the cluster without going through the Retiring state (e.g., abrupt pod termination in Kubernetes), their ingest shards remain marked as Open in the metastore indefinitely.

This causes persistent 503 / NoShardsAvailable errors on all ingest requests for the affected indexes until the index is deleted and recreated.

Steps to reproduce (if applicable)

  1. Create an index with an ingest source
  2. Start ingesting
  3. Scale up indexers, then scale them back down abruptly (kill pods, no graceful drain)
  4. All ingest requests for the index return 503
  5. Restarting the whole cluster doesn't help (dead shards are reloaded from metastore)
  6. Only deleting and recreating the index restores ingestion

Root cause

Two compounding issues:

  • Control plane — compute_shards_to_rebalance only handles shards on Retiring ingesters. Shards whose leader is completely absent from the ingester pool (node removed without draining) are silently skipped. No replacement shard is ever opened.
  • Router — when pick_node returns None because all routing-table entries point to dead ingesters (not in pool), the router records NoShardsAvailable which does not add the dead nodes to unavailable_leaders. So the control plane is never told the leaders are unreachable and never opens new shards.

Expected behavior
Reshard lead

Configuration:

Quickwit edge tag quickwit:edge@sha256:fd88ac3e41148a13ba16f722d6855fd626de516663f63ded4b624b2cd74d0d47

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.