[pgpool-committers: 5975] 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
------
V4_0_STABLE

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

Modified Files
--------------
src/main/pgpool_main.c      | 39 ++++++++++++++++++++++++++++-----------
src/watchdog/wd_json_data.c |  2 +-
2 files changed, 29 insertions(+), 12 deletions(-)



More information about the pgpool-committers mailing list