Skip to content

Commit

Permalink
fix pump offline: pump progress will exit with 0 if offline (#778)
Browse files Browse the repository at this point in the history
  • Loading branch information
sre-bot authored and weekface committed Aug 16, 2019
1 parent 6028c79 commit f4b84af
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 f4b84af

Please sign in to comment.