Page MenuHomePhabricator

Hold a lock while collecting garbage
ClosedPublic

Authored by epriestley on Oct 20 2016, 6:40 PM.
Tags
None
Referenced Files
F14011674: D16739.diff
Fri, Nov 1, 4:22 AM
F13991146: D16739.id40307.diff
Tue, Oct 22, 8:58 AM
F13985408: D16739.diff
Sun, Oct 20, 8:20 PM
F13973678: D16739.id40313.diff
Oct 18 2024, 2:02 AM
Unknown Object (File)
Oct 9 2024, 5:59 AM
Unknown Object (File)
Oct 7 2024, 6:50 AM
Unknown Object (File)
Sep 3 2024, 1:26 PM
Unknown Object (File)
Aug 25 2024, 7:43 AM
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.