HomePhabricator

Make repository daemons periodically check for out-of-sync repositories

Description

Make repository daemons periodically check for out-of-sync repositories

Summary:
See PHI1015. If you add new repository nodes to a cluster, we may not actually sync some repositories for up to 6 hours (if they've had no commits for 30 days).

Add an explicit check for out-of-sync repositories to trigger background sync.

Test Plan:

  • Ran bin/phd debug pullocal.
  • Fiddled with the repository_workingcopy version table to put the local node in and out of sync with the cluster.
  • Saw appropriate responses in the daemon (sync; wait if the last sync trigger was too recent).

Reviewers: amckinley

Reviewed By: amckinley

Differential Revision: https://secure.phabricator.com/D20078

Details

Provenance
epriestleyAuthored on Jan 31 2019, 8:15 PM
epriestleyPushed on Feb 1 2019, 6:12 AM
Reviewer
amckinley
Differential Revision
D20078: Make repository daemons periodically check for out-of-sync repositories
Parents
rPf3e154eb02c7: Allow "inactive" repositories to be read over SSH for cluster sync
Branches
Unknown
Tags
Unknown
Build Status
Buildable 21800
Build 29746: Run Core Tests