Skip to content

Commit

Permalink
fix pump offline: pump progress will exit with 0 if offline
Browse files Browse the repository at this point in the history
  • Loading branch information
weekface committed Aug 14, 2019
1 parent a320e52 commit a8416d5
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 "pump offline, please delete my pod"
tail -f /dev/null
fi

0 comments on commit a8416d5

Please sign in to comment.