bryancall opened a new pull request, #14043: URL: https://github.com/apache/trafficserver/pull/14043
Backport of [#13894](https://github.com/apache/trafficserver/pull/13894) to 9.2.x. In 106 runs of the 9.2.x branch Uranium job on 11/9 and 11/10, x_remap failed 2 times (builds 980 and 988), both on the x-remap-none transaction in the way described below. The x_remap replay and the xdebug headers test request Host "none", which no remap rule matches, and expect the 500 ATS returns when the name does not resolve. That lookup goes through the CI host's resolver. When it is slow, the Proxy Verifier client gives up after five seconds and x_remap fails with "Poll timed out waiting for content" on the x-remap-none transaction. Both tests now run a local microDNS server with no default address, so "none" gets NXDOMAIN at once and the result no longer depends on the host's DNS. The port was adapted. Master's xdebug_headers.test.yaml is test_xdebug_headers.py on 9.2.x, so this adds the same DNS server to that test through the services fixture, and points ATS at it with resolv.conf disabled the way the replay runner does. The x_remap.test.yaml hunk is the same as master's. Testing, on a 9.2.x CI build in the fedora:45 CI image, with /etc/resolv.conf replaced by a stand-in resolver: - Resolver that never answers: unfixed failed 6 of 6 runs (all three tests, x_remap with the same errors CI showed); fixed passed 20 of 21. - Resolver that answers NXDOMAIN after 2 s or 7 s: unfixed x_remap failed both; fixed passed both. - Normal resolver: fixed passed 20 of 21, unfixed 21 of 21 (that resolver is fast, so this checks for no regression only). - Unfixed, ATS sent its queries for "none." to the host resolver (5 per run with the resolver that never answers); fixed, it sent none in any of 23 runs. - The one failure in each fixed set was microDNS failing to bind its TCP port, not DNS. The replay runner checks only that the DNS port is free for UDP, and microDNS binds TCP on it too; master has the same runner code, so that is a separate fix. -- 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]
