[pgpool-committers: 7491] pgpool: Fix watchdog leader sync process to start health check process.

Tatsuo Ishii ishii at sraoss.co.jp
Mon Feb 8 20:38:12 JST 2021


Fix watchdog leader sync process to start health check process.

When watchdog receives status change request from other watchdog node
and calls sync_backend_from_watchdog() to sync with status of leader
node, it forgot to start health check process. For example,

1) initial pgpool_status file indicates DB node 1 is down.
2) pgpool starts up but only starts health check process for DB node 0
   because node 1 is in down status.
3) pcp_attach_node is issued to other than leader pgpool node.
4) leader node updates the node status for DB node 1 and other node
   syncs the status. Since sync_backend_from_watchdog() does not start
   health check process, only on pgpool leader node starts health
   check process but other nodes do not.

To fix this starts health check process if necessary in
sync_backend_from_watchdog().

Branch
------
V4_0_STABLE

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

Modified Files
--------------
src/main/pgpool_main.c | 18 ++++++++++++++++--
1 file changed, 16 insertions(+), 2 deletions(-)



More information about the pgpool-committers mailing list