Skip to content

Add shard deletion

Dmitry Gruzd requested to merge 389760-add-shard-deletion into main

This MR adds POST /indexer/delete/ID action to the indexer so that we can properly clean shards after the project is deleted.

Relates to gitlab#389760 (closed)

How to test

  1. Run make run listen=:6061
  2. Create zoekt shard files touch tmp/indexer/700_v16.00000.zoekt and touch tmp/indexer/7_v16.00000.zoekt
  3. Execute curl -XPOST http://127.0.0.1:6061/indexer/delete/7
  4. Ensure that ls -al tmp/indexer returns only 700_v16.00000.zoekt
Edited by Dmitry Gruzd

Merge request reports