More fix for occasional regression test 003.failover failure.
authorTatsuo Ishii <ishii@sraoss.co.jp>
Sat, 4 Jan 2020 01:30:22 +0000 (10:30 +0900)
committerTatsuo Ishii <ishii@sraoss.co.jp>
Sat, 4 Jan 2020 01:30:22 +0000 (10:30 +0900)
Comparison between show pool_node result and expected file failed
because of replication delay (the expected file set 0 to replication
delay column.) Fix is, disabling replication delay.

src/test/regression/tests/003.failover/test.sh

index da0aebdb61fad995afc2483c9836c136bb9fb9b9..64e782f5704611dc0e2247ad2d51ec953588fe1d 100755 (executable)
@@ -18,6 +18,10 @@ do
        $PGPOOL_SETUP -m $mode -n 2 --no-stop|| exit 1
        echo "done."
 
+       # disable replication delay check so that comparison between
+       # expected and actual result is not confused.
+       echo "sr_check_period = 0" >> etc/pgpool.conf
+
        source ./bashrc.ports
 
        export PGPORT=$PGPOOL_PORT