Fix 028.watchdog_enable_consensus_with_half_votes test script.
authorTatsuo Ishii <ishii@sraoss.co.jp>
Wed, 11 Sep 2019 04:08:16 +0000 (13:08 +0900)
committerTatsuo Ishii <ishii@sraoss.co.jp>
Wed, 11 Sep 2019 04:08:16 +0000 (13:08 +0900)
pcp_watchdog_node needs to have -h option to point to UNIX socket
directory if it is not the standard (/tmp) place.

src/test/regression/tests/028.watchdog_enable_consensus_with_half_votes/test.sh

index e508e01ce2ee0c07ded410b087ce213cd199ef27..8116e4fa737572e7ae6ca193be309cf074dc3e15 100755 (executable)
@@ -34,12 +34,12 @@ function wait_for_watchdog_startup
 # retun 0 if quorum exists.
 function quorum_exists
 {
-    $PGPOOL_INSTALL_DIR/bin/pcp_watchdog_info -v -w -p $PCP_PORT >/dev/null 2>&1
+    $PGPOOL_INSTALL_DIR/bin/pcp_watchdog_info -v -w -h $PGSOCKET_DIR -p $PCP_PORT >/dev/null 2>&1
     if [ $? != 0 ];then
        echo "pcp_watchdog_info is not still available"
        for i in 1 2 3 4 5
        do
-           $PGPOOL_INSTALL_DIR/bin/pcp_watchdog_info -v -w -p $PCP_PORT >/dev/null 2>&1
+           $PGPOOL_INSTALL_DIR/bin/pcp_watchdog_info -v -w -h $PGSOCKET_DIR -p $PCP_PORT >/dev/null 2>&1
            if [ $? = 0 ];then
                break;
            fi
@@ -48,7 +48,7 @@ function quorum_exists
        done
     fi
 
-    $PGPOOL_INSTALL_DIR/bin/pcp_watchdog_info -v -w -p $PCP_PORT |grep QUORUM|egrep 'EXIST|EDGE'>/dev/null
+    $PGPOOL_INSTALL_DIR/bin/pcp_watchdog_info -v -w -h $PGSOCKET_DIR -p $PCP_PORT |grep QUORUM|egrep 'EXIST|EDGE'>/dev/null
 }
 
 # shutdown half of nodes for even total number of nodes.