hapostgres / hapostgres/pg_auto_failover
pg_autoctl disable maintenance twice
- 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
Assessment
This issue has not been assessed yet.