Regularly reverify Packages on primary
Problem
We need to regularly re-verify data on the primary to protect against data corruption. In combination with https://gitlab.com/gitlab-org/gitlab-ee/issues/13842, this will ensure that packages are regularly re-verified on all secondary nodes as well.
Proposal
-
Add e.g. Geo::ReverificationWorker
which findsverification_succeeded
records whereverified_at
is older than re-verification interval. Update them toverification_pending
so they get picked up byGeo::VerificationBatchWorker
-
Add a DB index if needed -
Enqueue Geo::VerificationReverifyWorker
in.trigger_background_verification
(this method is already conveniently called every minute) if Geo primary -
Smoke test
Edited by Valery Sizov