pgpool2.git / summary / log / commit / refs

commit    657c81ea4a67819d4331bda01d76fd872b86f831
Author:   Yugo Nagata <nagata@sraoss.co.jp>
Date:     Mon Jan 05 05:27:23 2015 +0000

    Fix occasional failure in regression test '004.watchdog'
    
    Switchover between pgpools sometimes fails, since the active
    pgpool is stopped before the standby pgpool's watchdog is ready.
    To avoid this, take a sleep before stopping the active.
    
    The patch provided by uerhara in bug #127.


src/test/regression/tests/004.watchdog/test.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/test/regression/tests/004.watchdog/test.sh b/src/test/regression/tests/004.watchdog/test.sh index 9c13ff929..fe817f611 100755 --- a/src/test/regression/tests/004.watchdog/test.sh +++ b/src/test/regression/tests/004.watchdog/test.sh @@ -35,6 +35,10 @@ egrep 'backend_data_directory0|backend_data_directory1|failover_command|follow_m wait_for_pgpool_startup cd .. +echo "wait 5sec" +sleep 5 + + # stop master pgpool and see if standby take over $PGPOOL_INSTALL_DIR/bin/pgpool -f master/etc/pgpool.conf -m f stop @@ -46,6 +50,8 @@ do echo "Master escalation done." break; fi + echo "[check] $i times" + sleep 2 done cd master [parent: c3c9ab854ca8]