Page MenuHomePhabricator

Do not perform write in PhabricatorDaemonLogQuery by default
ClosedPublic

Authored by epriestley on Jan 21 2014, 4:01 PM.
Tags
None
Referenced Files
F19575579: D8023.id18144.diff
Sun, Feb 1, 7:10 AM
F19125708: D8023.diff
Dec 10 2025, 2:10 AM
F19076407: D8023.id.diff
Dec 1 2025, 12:11 PM
F19051215: D8023.id18144.diff
Nov 27 2025, 11:55 PM
F18845511: D8023.id.diff
Oct 29 2025, 12:38 PM
F18842284: D8023.diff
Oct 28 2025, 2:40 PM
F18792612: D8023.id18163.diff
Oct 16 2025, 7:57 PM
F18646122: D8023.id.diff
Sep 19 2025, 9:31 AM
Subscribers

Details

Summary

See http://github.com/facebook/phabricator/issues/487. By default, we perform a write in this query to moved daemons to "dead" status after a timeout. This is normally reasonable, but after D7964 we do a setup check against the daemons, which means this query is invoked very early in the stack, before we have a write guard.

Since doing this write unconditionally is unnecessarily, surprising, and overly ambitious, make the write conditional and do not attempt to perform it from the setup check.

(We could also move this to a GC/cron sort of thing eventually, maybe -- it's a bit awkward here, but we don't have other infrastructure which is a great fit right now.)

Test Plan

Hit setup issues and daemon pages. Will confirm with user that this fixes things.

Diff Detail

Branch
uwrite
Lint
Lint Passed
Unit
No Test Coverage