bryancall opened a new pull request, #14079: URL: https://github.com/apache/trafficserver/pull/14079
traffic_server's process manager thread alternates between `pollLMConnection()`, which reads messages from traffic_manager, and `processSignalQueue()`, which sends traffic_server's queued signals, including the periodic librecords pushes. `pollLMConnection()` re-armed its one second `select()` timeout after every message, so it only returned after a full second with nothing from traffic_manager. traffic_manager messages traffic_server about once a second. On a slow host the next batch can arrive before the timeout runs out, so the record pushes stay queued, traffic_manager never learns traffic_server's metrics, and `traffic_ctl metric get` fails with `[11] Invalid parameters`. This is the failure the 9.2.x coverage job keeps hitting in `test_continuations.py` (builds 196, 197, 198 and 200), and it has also shown up in the regex_revalidate tests. This waits up to a second only for the first message and drains the rest with a zero timeout, so `processSignalQueue()` runs after every batch. master and 10.2.x no longer have traffic_manager or `mgmt/ProcessManager.cc`, so this is 9.2.x only. ## Testing - New Uranium test `tests/uranium_tests/traffic_ctl/manager_push/test_manager_push.py` keeps traffic_manager messaging traffic_server through `traffic_ctl plugin msg` and checks that a traffic_server metric reaches traffic_manager. In the Rocky Linux 8 coverage image it failed 20 of 20 runs without the fix, always with `[11] Invalid parameters`, and passed 20 of 20 with it. - Full 9.2.x Uranium suite in the same image: no new failures. - Three runs of the coverage pipeline on this commit: 656 passed, 7 skipped each time. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
