mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-24 07:42:40 +01:00
0364ccdd5f
Summary: We lock tasks by setting `leaseOwner` to a unique value, but the value is currently unique-to-the-process rather than unique-to-the-query. This means that if a process leases a task, then leases another task, both tasks will have the same `leaseOwner`. This can cause an issue where we go to select the task we just leased and get the other task instead, if we aren't careful about the select construction. We can avoid this by being clever and making sure the select is constructed correctly, but making the `leaseOwner` unique to the query is much simpler and more foolproof. This guarantees we always select only the rows we just leased. Also remove `PhabricatorGoodForNothingWorker` since `PhabricatorTestWorker` fills its role of allowing things to be tested, and simplify the unit tests since we don't need to be clever about avoiding this issue any more. Test Plan: Ran unit tests. Reviewers: btrahan Reviewed By: btrahan CC: aran Maniphest Tasks: T2015 Differential Revision: https://secure.phabricator.com/D3862 |
||
---|---|---|
.. | ||
__tests__ | ||
celerity | ||
daemon | ||
diff | ||
edges | ||
events | ||
internationalization | ||
javelin | ||
lint | ||
markup | ||
query | ||
storage | ||
testing | ||
util | ||
PhabricatorAccessLog.php | ||
PhabricatorEditor.php | ||
PhabricatorEnv.php | ||
PhabricatorRequestOverseer.php | ||
PhabricatorScopedEnv.php | ||
PhabricatorSetup.php |