[pgpool-committers: 2628] pgpool: Fix regress test to sleep after pgpool_reload
Yugo Nagata
nagata at sraoss.co.jp
Wed Aug 19 17:24:54 JST 2015
Fix regress test to sleep after pgpool_reload
Some regression tests test behaviors after pgpool-II configuration
is modified and reloaded. However, sometimes these modification
were not applied to pgpool just after reloading.
It was observed after the following commit.
commit ba24a708ed61d6a5fa296451b194c4b448ed5966
Author: Tatsuo Ishii <ishii at postgresql.org>
Date: Thu Aug 6 13:02:42 2015 +0900
Issue fsync() when writing pgpool_status.
This ensures that pgpool_status is saved to permanent storage and
allow to survive after system crash.
It seem to be because fsync() takes a time before SIGHUP is sent
to child processes in reload_config().
Fix is to add sleep to wait for applying modification after
pgpool_reload.
In addition, some messages are added to test for debugging.
Branch
------
V3_3_STABLE
Details
-------
http://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=847b99315826dace69100f6358d30a32540cdd7a
Modified Files
--------------
test/regression/tests/001.load_balance/test.sh | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
More information about the pgpool-committers
mailing list