zalando / postgres-operator

Postgres operator creates and manages PostgreSQL clusters running in Kubernetes
https://postgres-operator.readthedocs.io/
MIT License
4.37k stars 980 forks source link

fix switch over candidate retrieving #2760

Closed fahedouch closed 2 weeks ago

fahedouch commented 2 months ago

fixe issue.

When asynchronous mode is enabled and no candidates are found, no retry is currently triggered to fetch a switchover candidate from the Patroni API. This PR enables retry for asynchronous mode, similar to synchronous mode.

Falcondevils commented 3 weeks ago

Need this fix. I am facing the same issue

FxKu commented 3 weeks ago

:+1:

macedigital commented 2 weeks ago

:+1:

FxKu commented 2 weeks ago

Thanks @fahedouch for your contribution and improving the operator experience :smiley: