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
F14013673: D8023.id18144.diff
Sat, Nov 2, 9:44 AM
F14013662: D8023.id18163.diff
Sat, Nov 2, 9:38 AM
F14013661: D8023.id.diff
Sat, Nov 2, 9:38 AM
F14011147: D8023.diff
Thu, Oct 31, 8:02 PM
F13999932: D8023.id18144.diff
Thu, Oct 24, 6:07 PM
Unknown Object (File)
Oct 8 2024, 3:56 AM
Unknown Object (File)
Oct 2 2024, 4:19 AM
Unknown Object (File)
Aug 25 2024, 3:21 PM
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

Lint
Lint Skipped
Unit
Tests Skipped