Skip to content

WIP: Refresh foreign tables fast and safely

What does this MR do?

The idea here is to let reconfigure call rake geo:db:refresh_foreign_tables more often. Then rake geo:db:refresh_foreign_tables can determine whether a refresh is truly needed or not. This must be fast so we don't bog down reconfigure.

It is option 3 of omnibus-gitlab#4672 (comment 218542272):

  1. tell omnibus to run the check, and parse it to know if we need refresh
  2. or add a rake task that returns 1 if need refresh
  3. or guard rake geo:db:refresh_foreign_tables with the check, and always run the task on reconfigure

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 Michael Kozono

Merge request reports