Skip to content

Add warning for the gitlab:elastic:index task

Dmitry Gruzd requested to merge 297411-elastic-index-rake-task-warning into master

What does this MR do and why?

This MR adds a warning to the gitlab:elastic:index rake task to warn users if they have indexing paused.

Screenshots or screen recordings

SCR-20221102-h8u

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

  1. Pause indexing via
    Gitlab::CurrentSettings.update!(elasticsearch_pause_indexing: true)
  2. Execute bin/rake gitlab:elastic:index
  3. Ensure that it outputs the warning

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #297411 (closed)

Edited by Dmitry Gruzd

Merge request reports

Loading