bneradt opened a new pull request, #14151: URL: https://github.com/apache/trafficserver/pull/14151
The Uranium port allocator handed out ports from a counter that only moved forward through 10001..29999 and never wrapped. Each replay reserves about ten ports, so a full urtest run now needs more ports than the range holds, and the last hundred or so tests fail with "Exhausted available test ports" even though almost every port is free again by then. This patch makes the range bound the ports held by tests that are still running instead of the session total. Each worker remembers the ports its current test allocates and returns them to a shared reservation list once the test's teardown completes. The cursor wraps around the range and skips ports that a running test still holds or that the system reports in use, so a port is never handed to two live tests. 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- 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]
