Page MenuHomePhabricator

Synchronize working copies before doing a "bypassCache" commit read
ClosedPublic

Authored by epriestley on Apr 22 2016, 11:03 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Dec 11, 7:31 AM
Unknown Object (File)
Mon, Dec 9, 5:40 AM
Unknown Object (File)
Fri, Nov 22, 3:13 AM
Unknown Object (File)
Nov 18 2024, 3:40 PM
Unknown Object (File)
Nov 15 2024, 6:57 AM
Unknown Object (File)
Nov 9 2024, 4:30 PM
Unknown Object (File)
Nov 6 2024, 8:09 AM
Unknown Object (File)
Oct 22 2024, 3:46 PM
Subscribers
None

Details

Summary

Ref T4292. When the daemons make a query for repository information, we need to make sure the working copy on disk is up to date before we serve the response, since we might not have the inforamtion we need to respond otherwise.

We do this automatically for almost all Diffusion methods, but this particular method is a little unusual and does not get this check for free. Add this check.

Test Plan
  • Made this code throw.
  • Ran bin/repository reparse --message ..., saw the code get hit.
  • Ran bin/repository lookup-user ..., saw this code get hit.
  • Made this code not throw.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley retitled this revision from to Synchronize working copies before doing a "bypassCache" commit read.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: chad.
chad edited edge metadata.
This revision is now accepted and ready to land.Apr 22 2016, 2:31 PM
chad requested changes to this revision.Apr 22 2016, 2:31 PM
chad edited edge metadata.
This revision now requires changes to proceed.Apr 22 2016, 2:31 PM
chad edited edge metadata.
This revision is now accepted and ready to land.Apr 22 2016, 2:32 PM
This revision was automatically updated to reflect the committed changes.