Fix pgpool_setup to not show an error.
authorTatsuo Ishii <ishii@sraoss.co.jp>
Mon, 3 May 2021 07:40:00 +0000 (16:40 +0900)
committerTatsuo Ishii <ishii@sraoss.co.jp>
Mon, 3 May 2021 07:40:00 +0000 (16:40 +0900)
In the streaming replication mode pgpool_setup showed error:
:
:
recovery node 2...pcp_recovery_node -- Command Successful
done.
creating follow primary script
psql: error: server closed the connection unexpectedly
This probably means the server terminated abnormally
before or while processing the request.
shutdown all
:
:

While creating followers, pgpool_setup confirmed using
wait_for_pgpool_startup that pgpool comes up online except the last
node. This is unnecessary and it should confirm that pgpool comes up
even in the last node.

src/test/pgpool_setup.in

index e96bb47c960046fc50ea0bd532b35cd41bf96304..bc40da424ee4af19b1cd7c5f4525241ebecdffe9 100644 (file)
@@ -916,10 +916,7 @@ EOF
                $PGPOOL_INSTALL_DIR/bin/pcp_recovery_node -w -h localhost -p $PCP_PORT -n $n
                echo "done."
                n=`expr $n + 1`
-               if [ $n -lt $NUMCLUSTERS ];then
-                   wait_for_pgpool_startup
-                   #                   sleep 10
-               fi
+               wait_for_pgpool_startup
            done
        fi