[pgpool-committers: 4157] 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_3_STABLE
Details
-------
https://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=551b0b1c02436f937fd0e0d27c3748f4381759b4
Modified Files
--------------
main.c | 10 ++++++++++
1 file changed, 10 insertions(+)
More information about the pgpool-committers
mailing list