Fix occasional regression test 003.failover failure.
authorTatsuo Ishii <ishii@sraoss.co.jp>
Tue, 31 Dec 2019 03:06:50 +0000 (12:06 +0900)
committerTatsuo Ishii <ishii@sraoss.co.jp>
Tue, 31 Dec 2019 03:17:58 +0000 (12:17 +0900)
commit3818be6aac51b38d9535fa2508cdb297000f67fb
treedae9d7f5b74b507937ba547de5751cd2a685dfaa
parente402ba963c6e42a8fa1ae413ca4a9d0f605f146c
Fix occasional regression test 003.failover failure.

The test compares the result of show pool_nodes against pre-computed
expected text file. After primary node goes down and old standby
promotes to primary, it is possible that streaming replication worker
process stores the replication state (async, streaming) in shared
memory before the failover but fails to update the state after the
failover. Fix is, replace "async", "streaming" with space characters
in the result file to match the expected file.
src/test/regression/tests/003.failover/test.sh