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)
Wed, Oct 30, 11:16 AM
Unknown Object (File)
Oct 19 2024, 2:51 PM
Unknown Object (File)
Oct 18 2024, 10:52 PM
Unknown Object (File)
Sep 15 2024, 5:03 AM
Unknown Object (File)
Sep 15 2024, 2:35 AM
Unknown Object (File)
Sep 5 2024, 10:59 PM
Unknown Object (File)
Sep 4 2024, 6:35 AM
Unknown Object (File)
Aug 27 2024, 7:42 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
Lint
Lint Not Applicable
Unit
Tests Not Applicable