Fix extra test failure of extended-query-test/disable-load-balance-default.
authorTatsuo Ishii <ishii@sraoss.co.jp>
Sun, 11 Aug 2019 09:58:51 +0000 (18:58 +0900)
committerTatsuo Ishii <ishii@sraoss.co.jp>
Sun, 11 Aug 2019 09:58:51 +0000 (18:58 +0900)
It expected the first BIND/EXECUTE was sent to load balance node. This
is not correct since previous parse message was sent to primary node
because of parse_before_bind treatment. Fix is, just adjust the test
script. Also fix comment in tests/disable-load-balance-default.data.

src/test/extended-query-test/extra_scripts/disable-load-balance-default.data
src/test/extended-query-test/tests/disable-load-balance-default.data

index 14b2dd3c082a0ffebedcdd71aef5897073f5d448..016dc2973e76f237f15497526795693688a02f0a 100755 (executable)
@@ -2,7 +2,7 @@
 
 # expected results: Parse: 1 Parse: 0 Execute: 0 Parse: 0 Execute: 0
 # Parse: 1 Execute: 1 Parse: 1 Execute: 1 Parse: 1 Execute: 1
-set 1 0 0 0 0 1 1 1 1 1
+set 1 0 0 0 0 1 1 0 1 1
 
 grep "SELECT" $PGPOOLLOG | grep -v version |awk '{print $9}' | while read node
 do
index 74344f9eb124249ba7aaac2f635a1fd060a4e72a..ff347628c6aeddc18558a3e4d65853a8a8ea3924 100644 (file)
@@ -55,8 +55,9 @@
 'B'    ""      ""      0       0       0
 'E'    ""      0
 
-# Issue Bind/Execute SELECT. This should be sent to node 1 because
-# disable_load_balance_on_write = 'transaction'.
+# Issue Bind/Execute SELECT. This should be sent to node 0 despite
+# disable_load_balance_on_write = 'transaction' because previous prase
+# messge was sent to primary node which was done by parse_before_bind.
 'B'    ""      "S1"    0       0       0
 'E'    ""      0