repmgr: poll demoted primary after restart during switchover

During a switchover operation, once the demoted primary has been restarted
as a standby, repmgr attempts to reconnect to verify its status and drop
any redundant replication slots. However it's possible the standby may still
be in the startup phase, so poll for "standby_reconnect_timeout" seconds
before giving up.

Addresses GitHub #408.
This commit is contained in:
Ian Barwick
2018-03-27 15:58:18 +09:00
parent deea4f69f7
commit 6f9a1f975e
4 changed files with 75 additions and 29 deletions

View File

@@ -1,6 +1,8 @@
4.0.5 2018-??-??
repmgr: fix display of conninfo parsing error messages (Ian)
repmgr: fix "repmgr cluster crosscheck" output; GitHub #389 (Ian)
repmgr: poll demoted primary after restart as a standby during a
switchover operation; GitHub #408 (Ian)
repmgrd: fix memory leaks in witness code (AndrzejNowicki, Martín)
4.0.4 2018-03-09