Pod Deletion Event Not Caught by waitForPodDeletion Function
メンテナーはふだん 2 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 52/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- go, kubernetes, postgresql
調査の方向性
pkg/cluster/pod.go の recreatePod 関数から開始し、waitForPodDeletion が pod の削除イベントをどのように購読して処理するかを追跡します。削除が listener のセットアップに先行するタイミングを再現し、その後、削除が確実に検知され、pod がなくなった後に関数がハングしたりタイムアウトしたりしないことを確認します。
索引モデルが issue の本文から書いたものです。
説明
Environment Information
- Which image of the operator are you using? master branch
- Where do you run it - cloud or metal? Kubernetes or OpenShift? Bare Metal K8s
- Are you running Postgres Operator in production? No (test environment)
- Type of issue? Bug report
File Path
pkg/cluster/pod.go in the recreatePod function
Description of the Issue
Sometimes, when a pod has already been deleted, the waitForPodDeletion function in the recreatePod method fails to catch the PodDeletion Event. This causes the function to hang or timeout, even though the pod deletion has actually occurred.
Steps to Reproduce
- Trigger pod recreation via the
recreatePodfunction - In some cases, the pod gets deleted successfully
- However, the
waitForPodDeletionfunction doesn't detect this event - The process gets stuck waiting for an event that won't come
Expected Behavior
The waitForPodDeletion function should reliably detect when a pod has been deleted, regardless of timing or race conditions.
Actual Behavior
The function sometimes misses the deletion event, causing the process to hang.
Additional Information
This issue appears to be related to event handling in the operator. It might be a race condition where the pod deletion event occurs before the event listener is properly set up, or the event is somehow missed by the subscriber mechanism.
- 主要言語
- Go
- スター
- 5.3k
- フォーク
- 1.1k
- 平均マージ
- 3日 17時間
- マージ済み PR(30日)
- 11
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
zalando/postgres-operator のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
zalando/postgres-operator#3257 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
zalando/postgres-operator#3254 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
zalando/postgres-operator#3253 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
zalando/postgres-operator#3252 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
zalando/postgres-operator#3182 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
zalando/postgres-operator の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
[inputs.internal] README lists go_version tag on internal_gather instead of internal_agent対応中かも @cvas22 が今日担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
influxdata/telegraf#20264 ·
メンテナーはふだん 1 日以内に返信
-
[Bug] Standalone migration breaks existing Ingress routes using the envoy-http Service port nameオープンaccepted bug wg/enterprise-environment
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
vllm-project/semantic-router#7483 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
stacklok/toolhive-catalog#2076 ·
メンテナーはふだん 1 日以内に返信
-
vulncheck or vulndb
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信