Skip to content

Reindex wikis to fix routing and backfill archived

Ravi Kumar requested to merge 422693-reindex-wikis-to-fix-routing into master

What does this MR do and why?

Due to a bug Force reindexing of wikis does not delete the e... (#422693 - closed) the wikis got the wrong routing. We need to do force reindexing of all the wikis.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

  • Tail the log rails-background-jobs
tail rails-background-jobs
  • Open the rails console
bundle exec rails c
  • Run the following command
Elastic::DataMigrationService[20231009223356].send(:migration).migrate
  • Ensure in the rails-background-jobs logs there are log entries for ElasticWikiIndexerWorker

MR acceptance checklist

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

Run time

~ 24 hours

[1] pry(main)> number_of_containers = 57198
=> 57198
[2] pry(main)> throttle_delay = 5.minute
=> 5 minutes
[3] pry(main)> batch_size = 200
=> 200
[4] pry(main)> ((number_of_containers / batch_size) * throttle_delay) / 1.hour
=> 23

Related to #422693 (closed)

#422917 (closed)

Edited by Ravi Kumar

Merge request reports

Loading