[pgpool-committers: 5972] pgpool: Fix for no primary on standby pgpool when primary is quarantine

Muhammad Usama m.usama at gmail.com
Thu Aug 8 15:17:29 JST 2019


Fix for no primary on standby pgpool when primary is quarantined on master

Master watchdog Pgpool sends primary_node_id = -1 in the backend status sync
message if the primary node is quarantined on it. So standby watchdog Pgpool
must not update its primary_node_id if the primary backend node id in sync
message is invalid_node_id (-1) while the same sync message reports the
backend status of the current primary node as "NOT DOWN".

The issue was reported by  "Tatsuo Ishii <ishii at sraoss.co.jp>" and fixed by me

Branch
------
V3_7_STABLE

Details
-------
https://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=2d7702c6961e8949e97992c23a42c8616af36d84

Modified Files
--------------
src/main/pgpool_main.c      | 43 ++++++++++++++++++++++++++++++-------------
src/watchdog/wd_json_data.c |  7 ++++---
2 files changed, 34 insertions(+), 16 deletions(-)



More information about the pgpool-committers mailing list