Skip to content

Stop process on /truncate

Dmitry Gruzd requested to merge end-process-on-truncate into main

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

  1. Execute
    make gdk
  2. Run
    curl -XPOST http://127.0.0.1:6080/indexer/truncate
  3. Ensure that the process is stopped gracefully
Edited by Dmitry Gruzd

Merge request reports

Loading