[pgpool-committers: 5448] pgpool: Fix unwanted recovery timeout in certain cases.

Tatsuo Ishii ishii at sraoss.co.jp
Tue Feb 12 17:09:18 JST 2019


Fix unwanted recovery timeout in certain cases.

In the second stage of online recovery in replication mode, it is
possible it fails with timeout (message: "wait_connection_closed:
existing connections did not close in %d sec.") if connection counter
is malformed by a child process aborts with SIGKILL, SEGFAULT or etc.
This could be detected by checking if client_idle_limit_in_recovery is
enabled and it has less value than recovery_timeout because all
clients must be kicked out by the time when
client_idle_limit_in_recovery is expired. If so, we should reset
conn_counter to 0 also.

Per bug 431.

Branch
------
V4_0_STABLE

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

Modified Files
--------------
src/pcp_con/recovery.c | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)



More information about the pgpool-committers mailing list