Fix occasional regression test failure of 008.dbredirect.
authorTatsuo Ishii <ishii@sraoss.co.jp>
Thu, 26 Dec 2019 05:13:08 +0000 (14:13 +0900)
committerTatsuo Ishii <ishii@sraoss.co.jp>
Sun, 19 Jan 2020 11:17:11 +0000 (20:17 +0900)
In the test pgbench -i is performed. It is possible that this bring
streaming replication delay, which in turn disturbs app/db
redirecting test. Fix is, disabling delay_threshold.

src/test/regression/tests/008.dbredirect/test.sh

index 3ac645e5a4110334f4eb27a87c2620a59ab8d2b2..ccc1db19594db4a1296d79ad7dac511a5e42e33d 100755 (executable)
@@ -27,6 +27,9 @@ source ./bashrc.ports
 
 echo "database_redirect_preference_list = 'postgres:primary,test:1,mydb[5-9]:2,test2:standby,test3:primary(0.0),test4:standby(0.0),test5:primary(1.0)'" >> etc/pgpool.conf
 
+# disable replication delay check to not prevent db/app redirecting
+echo "delay_threshold = 0" >> etc/pgpool.conf
+
 ./startall
 
 export PGPORT=$PGPOOL_PORT