Page MenuHomePhabricator

In Phage, don't sit in a loop once we've read all messages from an agent
ClosedPublic

Authored by epriestley on Feb 19 2017, 3:04 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, May 5, 11:53 PM
Unknown Object (File)
Fri, May 3, 5:56 AM
Unknown Object (File)
Tue, Apr 30, 11:21 PM
Unknown Object (File)
Sat, Apr 27, 10:34 AM
Unknown Object (File)
Wed, Apr 17, 3:02 PM
Unknown Object (File)
Thu, Apr 11, 7:12 AM
Unknown Object (File)
Wed, Apr 10, 6:05 AM
Unknown Object (File)
Wed, Apr 10, 1:52 AM
Subscribers
None

Details

Summary

Ref T2794. The logic is intended to read "loop until we're done processing messages", but is currently missing a break;. This doesn't affect behavior yet, just makes us eat way too much CPU.

Test Plan

Saw time phage remote --hosts db001-16 status drop from 99% CPU time to <10%.

Diff Detail

Repository
rPHU libphutil
Branch
phage3
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 15704
Build 20745: Run Core Tests
Build 20744: arc lint + arc unit