Page MenuHomePhabricator

Hold a lock while collecting garbage
ClosedPublic

Authored by epriestley on Oct 20 2016, 6:40 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Apr 15, 8:29 PM
Unknown Object (File)
Thu, Apr 11, 4:20 AM
Unknown Object (File)
Mon, Apr 8, 10:39 AM
Unknown Object (File)
Wed, Apr 3, 6:25 PM
Unknown Object (File)
Sun, Mar 31, 7:33 PM
Unknown Object (File)
Sun, Mar 31, 3:15 PM
Unknown Object (File)
Sun, Mar 31, 12:26 AM
Unknown Object (File)
Sat, Mar 30, 9:00 PM
Subscribers
None

Details

Summary

Fixes T11771. Adds a lock around each GC process so we don't try to, e.g., delete old files on two machines at once just because they're both running trigger daemons.

The other aspects of this daemon (actual triggers; nuance importers) already have separate locks.

Test Plan

Ran bin/phd debug trigger --trace, saw daemon acquire locks and collect garbage.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley retitled this revision from to Hold a lock while collecting garbage.
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.Oct 20 2016, 7:44 PM
This revision was automatically updated to reflect the committed changes.