[pgpool-committers: 4155] pgpool: Fix for [pgpool-general: 5621] pgpool 3.6.4 failover

Muhammad Usama m.usama at gmail.com
Fri Jul 28 00:08:09 JST 2017


Fix for [pgpool-general: 5621] pgpool 3.6.4 failover

Failover() function should be executed with health check alarm disabled

The reason is the find primary node and health check uses the same function to
make a connection to the backends, and the backend connect function has a built
in logic to bail out with the timeout error when the health check alarm occurs.
Now the problem is if the failover() is executed while the health check alarm is
still running, Their is a strong possibility that the find primary node function
may find the health check timer already expired and exit without locating the
new primary node.

The relevant part is back-ported from the 3.6 branch

Branch
------
V3_4_STABLE

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

Modified Files
--------------
src/main/pgpool_main.c | 14 +++++++++++---
1 file changed, 11 insertions(+), 3 deletions(-)



More information about the pgpool-committers mailing list