Page MenuHomePhabricator

Hold a lock while collecting garbage
ClosedPublic

Authored by epriestley on Oct 20 2016, 6:40 PM.
Tags
None
Referenced Files
F18828311: D16739.diff
Fri, Oct 24, 3:44 PM
F18782737: D16739.id40307.diff
Mon, Oct 13, 2:29 AM
F18774470: D16739.id.diff
Fri, Oct 10, 10:34 AM
F18751516: D16739.id40307.diff
Sat, Oct 4, 11:28 AM
F18635536: D16739.diff
Sep 17 2025, 1:49 AM
F18119766: D16739.id40307.diff
Aug 13 2025, 10:11 AM
F18108693: D16739.id40313.diff
Aug 11 2025, 8:45 AM
F18103283: D16739.id.diff
Aug 10 2025, 3:42 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
Branch
gclock
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 14199
Build 18455: Run Core Tests
Build 18454: arc lint + arc unit

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.