Stop process on /truncate
What does this MR do and why?
I've truncated a couple of nodes during gitlab-com/gl-infra/production#18383 (closed) and noticed that they do not pick up the new uuid. This MR fixes that.
If the truncate command received, the process stops so that it can be restarted with the new uuid.
How to set up and validate locally
- Execute
make gdk
- Run
curl -XPOST http://127.0.0.1:6080/indexer/truncate
- Ensure that the process is stopped gracefully
Edited by Dmitry Gruzd