Pod Deletion Event Not Caught by waitForPodDeletion Function
I maintainer di solito rispondono entro 2 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 52/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- go, kubernetes, postgresql
- Ambito
- infrastructure
Direzione di ricerca
Inizia in pkg/cluster/pod.go, nella funzione recreatePod, e segui il modo in cui waitForPodDeletion si iscrive agli eventi di eliminazione del pod e li gestisce. Riproduci la tempistica in cui l’eliminazione precede la configurazione del listener, quindi verifica che l’eliminazione venga rilevata in modo affidabile e che la funzione non rimanga più bloccata né vada in timeout dopo che il pod è stato eliminato.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Go
- Stelle
- 5.3k
- Fork
- 1.1k
- Merge medio
- 3g 17h
- PR unite (30g)
- 11
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di zalando/postgres-operator
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
zalando/postgres-operator#3257 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
zalando/postgres-operator#3254 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
zalando/postgres-operator#3253 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
zalando/postgres-operator#3252 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
zalando/postgres-operator#3182 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni
Tutte le issue di zalando/postgres-operator
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
[inputs.internal] README lists go_version tag on internal_gather instead of internal_agentForse già presa @cvas22 l’ha presa oggi. Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
influxdata/telegraf#20264 ·
I maintainer di solito rispondono entro 1 giorno
-
[Bug] Standalone migration breaks existing Ingress routes using the envoy-http Service port nameApertaaccepted bug wg/enterprise-environment
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
vllm-project/semantic-router#7483 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
stacklok/toolhive-catalog#2076 ·
I maintainer di solito rispondono entro 1 giorno
-
vulncheck or vulndb
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
golang/go#83428 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno