Skip to content

Commit

Permalink
fix pump offline: pump progress will exit with 0 if offline (#769)
Browse files Browse the repository at this point in the history
  • Loading branch information
weekface committed Aug 16, 2019
1 parent 6c5b6b1 commit 2e70a73
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions charts/tidb-cluster/templates/scripts/_start_pump.sh.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,8 @@ set -euo pipefail
-advertise-addr=`echo ${HOSTNAME}`.{{ template "cluster.name" . }}-pump:8250 \
-config=/etc/pump/pump.toml \
-log-file=

if [ $? == 0 ]; then
echo $(date -u +"[%Y/%m/%d %H:%M:%S.%3N %:z]") "pump offline, please delete my pod"
tail -f /dev/null
fi

0 comments on commit 2e70a73

Please sign in to comment.