1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-14 10:52:41 +01:00
phorge-phorge/src/applications/owners
epriestley 918ac5755c Limit maximum size of Owners package queries
Summary:
Currently, a change may affect a very large number of paths. When we run the OwnersWorker on it, we'll execute a query which looks up packages for the paths. This may exceed "max_allowed_packet". Instead, break the list of paths into smaller chunks.

This is mostly to unblock r4nt / llvm, I'm going to add a more finessed approach to array_chunk() shortly.

Test Plan: Ran `reparse.php --owners` on a revision which affected packages, verified results are the same before and after the change. Set chunk size to 1, verified query results aggregated properly.

Reviewers: btrahan, jungejason, nh

Reviewed By: jungejason

CC: aran

Differential Revision: https://secure.phabricator.com/D2943
2012-07-09 10:51:46 -07:00
..
controller Partial fix for owners bug where a package's repository doesn't exist. 2012-06-18 06:04:36 -07:00
mail Make Thread-Topic human readable 2012-06-14 11:36:34 -07:00
query Move files in Phabricator one level up 2012-06-01 12:32:44 -07:00
storage Limit maximum size of Owners package queries 2012-07-09 10:51:46 -07:00
OwnersPackageReplyHandler.php Move files in Phabricator one level up 2012-06-01 12:32:44 -07:00