Skip to content

Handle elastic:reindex_cluster unique index violation

Dmitry Gruzd requested to merge fix-cluster-reindexing-task into master

What does this MR do?

This MR fixes a problem that was reported by a customer.

If the customer has another reindexing task, instead of failing rake gitlab:elastic:reindex_cluster with ERROR: duplicate key value violates unique constraint "index_elastic_reindexing_tasks_on_in_progress" we would show a message There is another task in progress. Please wait for it to finish.

Screenshots

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team
Edited by Dmitry Gruzd

Merge request reports