Skip to content

Add lock status for truncate and delete

Dmitry Gruzd requested to merge add-locks-for-truncate-and-delete into main

This MR adds handling for the cases when you attempt to delete or truncate a project when indexing is in-progress.

How to test

  1. Start a long-running indexing (or you can try to time it with a smaller repository)
  2. Execute DELETE /indexer/index/ID or POST /indexer/truncate while the indexing is still running
  3. Ensure that it returns 423 Locked
Edited by Dmitry Gruzd

Merge request reports

Loading