Skip to content

Clear reindexing records when initating indexing

What does this MR do and why?

Related to #384955

The what: This MR adds an additional cleanup step to delete all Elastic::ReindexingTask records (and associated records) for when an instance is reindexed (either for the first time or from scratch).

The why: Leaving the records creates a confusion UI experience when users have re-indexed their instance and see errors from previous Zero downtime reindexing attempts.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

N/A

How to set up and validate locally

  1. setup elasticsearch for gdk
  2. index your instance
  3. run zero downtime reindexing and wait till it finishes
  4. Verify the admin UI shows info about the last reindexing
  5. reindex the instance (either using the Admin UI or the gitlab:elastic:index rake task)
  6. Verify that the admin UI does not show reindexing information anymore
Edited by Terri Chu

Merge request reports

Loading