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

オープン
#6,480 コメント 5 件 リアクション 2 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
静か
技術スタック
rust

調査の方向性

まず、control plane の compute_shards_to_rebalance と、router の pick_node および unavailable_leaders を追跡します。存在しない ingester リーダーが routing table と metastore でどのように表現されているかを追い、その後、ノードが突然削除された場合の reshard パスを検証します。インデックスを削除して再作成せずに ingestion が復旧すれば完了です。

索引モデルが issue の本文から書いたものです。

説明

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

主要言語
Rust
スター
11.8k
フォーク
628
平均マージ
2日 22時間
マージ済み PR(30日)
50

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

quickwit-oss/quickwit のほかの issue

quickwit-oss/quickwit の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。