Skip to content

Commit

Permalink
fix: liveness probe cosmetic issue (#1206)
Browse files Browse the repository at this point in the history
If an instance is fenced, we report a liveness probe error in
the instance log stream. We now avoid doing that because we shut down
PostgreSQL in that case.

Signed-off-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com>
(cherry picked from commit ab54026)
  • Loading branch information
leonardoce committed Dec 15, 2022
1 parent 8e935b3 commit 53842d9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/management/postgres/webserver/remote.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ func (ws *remoteWebserverEndpoints) isServerHealthy(w http.ResponseWriter, r *ht
if ws.instance.PgRewindIsRunning || ws.instance.MightBeUnavailable() {
log.Trace("Liveness probe skipped")
_, _ = fmt.Fprint(w, "Skipped")
return
}

err := ws.instance.IsServerHealthy()
Expand Down

0 comments on commit 53842d9

Please sign in to comment.