Test: fix occasional 069.memory_leak_extended test failure.
authorTatsuo Ishii <ishii@sraoss.co.jp>
Mon, 22 May 2023 07:27:40 +0000 (16:27 +0900)
committerTatsuo Ishii <ishii@sraoss.co.jp>
Mon, 22 May 2023 07:27:40 +0000 (16:27 +0900)
commitcccdf57c6ba75e5ac12b3ecf12bc1aeee27b3d29
tree089ae63dd0b47dc8e2c3b57715422deea7c2056d
parent66fa78e2b5b97c116fce914f474ef562febbfa10
Test: fix occasional 069.memory_leak_extended test failure.

It turned out that reason of the occasional test failure is, pgpool
child process is gone before running ps command after pgbench
finishes. The cause is a kind mismatch FATAL error, "DISCARD ALL
cannot be executed within a pipeline". To fix this, run pgbench in
background and get the process size before pgbench finishes.

Discussion: https://www.pgpool.net/pipermail/pgpool-hackers/2023-May/004338.html
src/test/regression/tests/069.memory_leak_extended/test.sh