Test: enhance 037.failover_session/test.sh.
authorTatsuo Ishii <ishii@sraoss.co.jp>
Mon, 25 Dec 2023 08:10:12 +0000 (17:10 +0900)
committerTatsuo Ishii <ishii@sraoss.co.jp>
Mon, 25 Dec 2023 08:10:12 +0000 (17:10 +0900)
commitbcaa4e7702b11eea5585a91d2dfb204baf92deb3
tree3de50ab50f388a27a8c6b380145abe26a0b9986e
parent873c0eafd15aba0051bd4fe1b0c743bc6b315c48
Test: enhance 037.failover_session/test.sh.

Previously it mistakenly executed pg_ctl stop after starting pgbench
in background.  The smart shutdown always allows pgbench to run
successfully with pgbench -C option not being set because backend
does not shutdown while client session continues. In order to shutdown
backend in the middle of pgbench run, tweak health check parameters so
that it detects the backend down as soon as possible. This will
trigger failover in the middle of pgbench run.

With these changes Pgpool-II 4.5 and beyond succeeds in all 4 tests,
while pre-4.5 will fail in all 4 tests (that was the originally
expected result).

Also allow to run all the 4 tests even if some tests fail so that we
can check which of which test failed.
src/test/regression/tests/037.failover_session/test.sh