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
F14406813: D11296.diff
Mon, Dec 23, 8:35 PM
Unknown Object (File)
Fri, Dec 20, 11:24 AM
Unknown Object (File)
Sun, Dec 15, 9:38 PM
Unknown Object (File)
Sun, Dec 15, 7:07 AM
Unknown Object (File)
Nov 19 2024, 6:34 AM
Unknown Object (File)
Oct 27 2024, 1:39 AM
Unknown Object (File)
Oct 26 2024, 8:40 PM
Unknown Object (File)
Oct 20 2024, 2:30 AM
Subscribers

Details

Test Plan

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

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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
153–154

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.