KRaft: a new controller can bootstrap against itself and never join the quorum
メンテナーはふだん 1 日以内に返信
評価
この issue はまだ評価されていません。
説明
Description
A controller that starts without metadata (a new pod, e.g. after scaling up a controller role group) finds the quorum leader through controller.quorum.bootstrap.servers. Outside Kerberos, that list has one entry per controller role group: the role group's headless Service. That Service sets publishNotReadyAddresses: true, so the name also resolves to the starting pod's own IP.
Kafka treats each entry in controller.quorum.bootstrap.servers as one bootstrap node and resolves its name when it connects. If the starting pod's lookup returns its own IP, the connection succeeds, so Kafka never tries another address. The pod asks itself for the leader, gets no answer, and repeats this forever.
This is a race in the quorum management added in #1010.
Symptoms
- The new controller stays in Raft state
unattached(epoch 0) and never becomes an observer. The quorum's replication status doesn't list it at all. - Its
quorum-managersidecar logsLocal Raft state is 'unattached', nothing to doindefinitely, so it never callsadd-controller. - The
kafkacontainer never becomes ready, and the StatefulSet rollout stalls. Because the StatefulSet usesOrderedReady, later replicas are not created either. - The pod's only connections on the controller port go to its own IP.
- Deleting the pod usually clears it: the replacement resolves another IP and joins normally.
- 主要言語
- Rust
- スター
- 31
- フォーク
- 9
- 平均マージ
- 4日 5時間
- マージ済み PR(30日)
- 14
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
stackabletech/kafka-operator のほかの issue
-
Use mTLS instead of Kerberos for KRaft inter-node traffic対応中かも @razvan が 1 日前に担当しました。 オープンtype/internal-improvement
stackabletech/kafka-operator#1066 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
KRaft: adding a controller role group can bootstrap a second quorum対応中かも @razvan が 1 日前に担当しました。 オープンtype/bug
stackabletech/kafka-operator#1060 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 30/100
stackabletech/kafka-operator#1059 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
stackabletech/kafka-operator#1058 ·
メンテナーはふだん 1 日以内に返信
-
type/bug
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
stackabletech/kafka-operator#955 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
stackabletech/kafka-operator の issue をすべて見る
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
storytold/photocraft#14822 ·
メンテナーはふだん 1 日以内に返信
-
bug css
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
dginev/latexml-oxide#853 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 2 日以内に返信
-
[Bug] export_build_environment admits its output directory only after the export ran in the build computer対応中かも @viniciusdsandrade が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信