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

Tatsuo Ishii ishii at sraoss.co.jp
Tue Aug 11 11:50:20 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
------
master

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

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



More information about the pgpool-committers mailing list