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)
Mon, Jan 13, 7:40 PM
Unknown Object (File)
Sun, Dec 22, 1:15 AM
Unknown Object (File)
Dec 18 2024, 2:18 PM
Unknown Object (File)
Dec 7 2024, 1:41 AM
Unknown Object (File)
Dec 1 2024, 8:38 AM
Unknown Object (File)
Nov 28 2024, 12:18 PM
Unknown Object (File)
Nov 27 2024, 1:28 AM
Unknown Object (File)
Nov 24 2024, 7:09 PM
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