public inbox for [email protected]
help / color / mirror / Atom feedFrom: Taiki Koshino <[email protected]>
To: [email protected]
Subject: pgpool: Feature: Wait for follow_primary completion and report
Date: Wed, 15 Apr 2026 00:47:04 +0000
Message-ID: <[email protected]> (raw)
Feature: Wait for follow_primary completion and report
failure in pcp_promote_node and enhence failover script.
This commit enhances the pcp_promote_node command to wait for
the completion of the follow_primary command triggered during
failover and enhance failover script.
Add pcp_follow_primary_wait and pcp_follow_primary_succeeded
members to Req_info. The pcp worker sets pcp_follow_primary_wait
to true before initiating failover and waits until it is cleared
by the follow_primary process.
The follow_primary execution side clears pcp_follow_primary_wait
when the processing finishes, and sets pcp_follow_primary_succeeded
to false if any error occurs during execution.
If follow_primary fails, pcp_promote_node reports an ERROR instead of
returning success, allowing users to detect failures directly from the
command result.
Enhance failover.sample.sh to checkpoint on old primary node before promote.
Branch
------
master
Details
-------
https://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=57fe60647d198760cd3199f6904d90f743a44...
Modified Files
--------------
doc.ja/src/sgml/ref/pcp_watchdog_info.sgml | 11 ++++++++---
doc/src/sgml/ref/pcp_watchdog_info.sgml | 10 +++++++---
src/include/pcp/pcp.h | 1 +
src/include/watchdog/watchdog.h | 2 ++
src/include/watchdog/wd_commands.h | 2 ++
src/include/watchdog/wd_ipc_defines.h | 2 +-
src/include/watchdog/wd_lifecheck.h | 3 ++-
src/libs/pcp/pcp.c | 6 ++++++
src/tools/pcp/pcp_frontend_client.c | 8 +++++---
src/watchdog/watchdog.c | 13 +++++++++++++
src/watchdog/wd_commands.c | 7 +++++++
src/watchdog/wd_json_data.c | 4 +++-
src/watchdog/wd_lifecheck.c | 10 +++++++++-
13 files changed, 66 insertions(+), 13 deletions(-)
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected]
Subject: Re: pgpool: Feature: Wait for follow_primary completion and report
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox