hapostgres / hapostgres/pg_auto_failover

pg_autoctl disable maintenance twice

Open
#987 1 comment 0 reactions 0 assignees View on GitHub
bug good first issue
Dominant language
C
Stars
1.4k
Forks
142
Avg merge
5h 8m
Merged PRs (30d)
1

Description

Salut Dimitri,

I try to raise twice ( on a healthy cluster)
pg_autoctl enable maintenance, return code is 0 (event if the second time I have the message Node already in ... maintenance).
To me that's logical.

I tried same test with
pg_autoctl disable maintenance, the second try I have return code 6 (and the message Monitor ERROR: cannot stop maintenance when current state for node 1 "node_1" is not "maintenance"

My question is, is return code 6 specific to that state , or I can have code return code 6 (for pg_autoctl disable maintenance statement) in other uses cases ?
If yes how can I handle that case which to me is not an error ?

Thank you

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.