[pgpool-committers: 6914] pgpool: Fix connection_life_time does not work.

Tatsuo Ishii ishii at sraoss.co.jp
Tue Aug 11 11:49:55 JST 2020


Fix connection_life_time does not work.

If master node is not 0 (this could happen in the case when primary
node is not 0 in streaming replication mode for example), pgpool
failed to find connection_life_time timer because the timer was set
only in virtual_master_node, which could be changed after session ends
since query context is not there any more.

To fix this, connection_life_time timer is set to all valid nodes.

Regression test is also added.

Discussion: https://www.pgpool.net/pipermail/pgpool-general/2020-August/007242.html

Branch
------
V3_5_STABLE

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

Modified Files
--------------
src/protocol/pool_connection_pool.c                |  6 +-
.../tests/031.connection_life_time/test.sh         | 69 ++++++++++++++++++++++
2 files changed, 74 insertions(+), 1 deletion(-)



More information about the pgpool-committers mailing list