Page MenuHomePhabricator

Lets really skip item and not spin in loop...
ClosedPublic

Authored by artms on Jan 9 2015, 11:40 AM.
Tags
None
Referenced Files
F14004716: D11296.diff
Sun, Oct 27, 1:39 AM
F14004445: D11296.id27140.diff
Sat, Oct 26, 8:40 PM
F13982857: D11296.diff
Oct 20 2024, 2:30 AM
F13958669: D11296.id.diff
Oct 14 2024, 4:01 PM
Unknown Object (File)
Oct 13 2024, 9:50 PM
Unknown Object (File)
Oct 2 2024, 8:30 PM
Unknown Object (File)
Sep 26 2024, 4:47 PM
Unknown Object (File)
Sep 17 2024, 7:39 AM
Subscribers

Details

Test Plan

Loop will spin forever if repository is not pullable...

Diff Detail

Repository
rP Phabricator
Branch
master
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 3710
Build 3721: [Placeholder Plan] Wait for 30 Seconds

Event Timeline

artms retitled this revision from to Lets really skip item and not spin in loop....
artms updated this object.
artms edited the test plan for this revision. (Show Details)
artms added a reviewer: epriestley.
src/applications/repository/daemon/PhabricatorRepositoryPullLocalDaemon.php
152

It seems like if we break, then upper while loop will enter foreach again and it will be a forever loop. I'm not sure if continue is right, maybe we should really (anyway it seems queue will be repopulated on next upper loop iteration):

unset($queue[$id]);

In our environment pull daemon occasionally goes into loop and never recovers, gdb backtrace tell that daemon is spinning in this loop trying to translate log entry...

Guys any progress with it... It is really hitting pull workers hard which spin in loop doing nothing but spaming logs about repository not pullable anymore...

This revision is now accepted and ready to land.May 17 2015, 2:24 PM
This revision was automatically updated to reflect the committed changes.