Skip to content

Commit

Permalink
controller: fix preStop hook to run supervisorctl stop scylla, instea…
Browse files Browse the repository at this point in the history
…d of nodetool drain

Fixed #240
  • Loading branch information
dkropachev authored and zimnx committed Nov 12, 2020
1 parent 99c40d4 commit e7640e6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/controllers/cluster/resource/resource.go
Expand Up @@ -310,8 +310,7 @@ func StatefulSetForRack(r scyllav1alpha1.RackSpec, c *scyllav1alpha1.ScyllaClust
PreStop: &corev1.Handler{
Exec: &corev1.ExecAction{
Command: []string{
"nodetool",
"drain",
"/bin/sh", "-c", "PID=$(pgrep -x scylla);supervisorctl stop scylla; while kill -0 $PID; do sleep 1; done;",
},
},
},
Expand Down

0 comments on commit e7640e6

Please sign in to comment.