[pgpool-committers: 4030] pgpool: Fix corner case bug in Pgpool-II starting up.

Tatsuo Ishii ishii at postgresql.org
Tue May 16 09:42:55 JST 2017

Fix corner case bug in Pgpool-II starting up.

It is possible that a failover request is accepted before primary node
is searched.  This leads Pgpool-II to a strange state: there's no
primary node if the failed node was a primary node (even if new
primary node exists as a result of promotion of existing standby).

See [pgpool-hackers: 2321] for more details.



Modified Files
src/main/pgpool_main.c                             | 33 ++++++++++++++--------
.../tests/003.failover/create_expected_node0.sql   | 18 ++++++++++++
src/test/regression/tests/003.failover/test.sh     | 18 +++++++++++-
.../regression/tests/055.backend_all_down/test.sh  |  2 ++
4 files changed, 58 insertions(+), 13 deletions(-)

More information about the pgpool-committers mailing list