daniel-pinder opened a new issue, #14058:
URL: https://github.com/apache/trafficserver/issues/14058
**Version:** `master` `0607aefe2c` (2026-11-12). The same gate shape exists
in
10.2.1, where the response-retry path is also affected (downstream
qualification, recorded at the end as optional supporting data).
**Config:** a `parent.config` rule with several parents, simple retry in
play,
and an unresolvable middle parent:
```
dest_domain=.
parent="parent-a.test:10001;parent-b.invalid:10002;parent-c.test:10002"
round_robin=false go_direct=false parent_is_proxy=true
parent_retry=simple_retry simple_server_retry_responses="503"
max_simple_retries=1
```
with `proxy.config.http.no_dns_just_forward_to_parent 1`.
**Mechanism (the case master exhibits).** `parent-a` answers 503, so
`handle_response_from_parent`'s `PARENT_RETRY` case calls
`find_server_and_update_current_info` and selection moves to `parent-b`. The
response path re-enters `PPDNSLookup` for `parent-b` (master clears
`resolved_p`, so that lookup is unconditional). `parent-b`'s name does not
resolve, so `PPDNSLookup`'s failed-lookup branch runs:
`find_server_and_update_current_info` selects `parent-c` and overwrites
`s->parent_info.name`, but `parent_info.dst_addr` still holds *`parent-a`'s*
resolved address. The gate
```c
if (!s->current.server->dst_addr.isValid()) {
... DNS_LOOKUP for the selected parent ...
}
```
therefore sees a valid address and skips the lookup for `parent-c`; the
attempt
is connected to `parent-a` again, which answers 503, and the retry budget is
already spent. The healthy `parent-c` never receives a connection.
**Expected:** the attempt after the failed lookup is resolved and connected
to
the parent just selected.
**Observed:** it is connected to the previously selected parent's stale
address; the client gets the failed parent's terminal status while the
healthy
parent is never contacted.
**Relationship to the response-retry path (so this is not misread as a
duplicate of #13102).** A retry that moves directly from one responsive
parent
to the next is already handled on master: `update_dns_info` clears
`resolved_p`, so the response-retry path unconditionally issues `PPDNSLookup`
for the newly selected parent and overwrites `parent_info.dst_addr`. The case
above is different: the lookup for the middle parent FAILED, and the code
that
moves on from that failure reuses the stale address. #13169 / PR #13102
reworked
HostDB handling for origin servers and do not cover this parent-side path.
## Reproduction
1. Two support parents and one healthy parent: `parent-a` answers 503 (any
HTTP server), `parent-b.invalid` is a name that does not resolve,
`parent-c`
holds the object (200).
2. One cache with the rule above and `no_dns_just_forward_to_parent 1`, with
a
DNS service that resolves `parent-a`/`parent-c` and has no default answer
(so `parent-b`'s lookup fails).
3. Request the object through the cache.
4. Observe: on the unpatched tree the client receives `parent-a`'s 503 and
the
trace in `traffic.out` shows selection reaching `parent-c` with no
`DNS lookup for successful IP` for it; with the hunk the trace shows
`Entering HttpTransact::PPDNSLookup` after `parent-c` is selected and
`DNS lookup for successful IP: <parent-c>`, and `parent-c` serves the
object.
## Build and test evidence (master)
Built with FibreTel's qualified sandbox recipe adapted to a pinned commit
(Debian 13 base, same dependency set and install directories; source fetched
by
commit sha, verified with `git rev-parse`):
- source: `apache/trafficserver` `master`
`0607aefe2cb2e675e329c8ecac43601dcd3fa23b`
(2026-11-12, "QUIC: one OpenSSL QUIC listener per net thread (#14035)")
- pristine image: `traffic_server` sha256
`dfdccf33520971efe2ccf6b5ae14fcdd4dc0722582584f3d386c8db9e5b4c7ae`
- patched image (final hunk placement inside the `nullptr != hostname`
block):
`traffic_server`
d9040a849b83bc4b159f48095028c5dade160a79f1f3b472edf1a5ee592264d0 (patch sha256
4ddcf061399222ab9c5033c0dd322056f05a400a446c534b52c9729d04a0e8e8)
**RED** — pristine master,
`tests/uranium_tests/parent_proxy/test_stale_parent_dst_addr.py`:
```
HTTP/1 Status Violation: expected 200 got 503, key: stale-parent-retry
1 failed, 1615 deselected
```
**GREEN** — patched, the identical test file:
```
1 passed, 1614 deselected
```
Trace: on pristine, `Retry result for origin.test was parent parent-c.test`
appears with no subsequent `PPDNSLookup` for it; on the patched build the
same
sequence is followed by `Entering HttpTransact::PPDNSLookup` and
`DNS lookup for successful IP: 127.0.0.1:<parent-c port>`.
**No regressions** — the neighbouring `parent_proxy` tests on the patched
build: `test_parent_retry`, `test_bypass_parent_connect`,
`test_consistent_hash_ring_walk` — `3 passed, 1612 deselected`.
## Optional supporting data (10.2.1, downstream)
The 10.2.1 fix was qualified with two images built from the same signed
10.2.1
tarball, each run bound to its image ID and executable digest. This is
downstream evidence for the response-retry path on that release and is
offered
only as supporting data:
- GREEN (patched; executable sha256
`68808447981b3dde4ccd14d2f36e905552a95a0d0d4807aec8e874ce0cf232b9`): 40/40
clients served, zero stale-destination connects on both witnesses; the parent's
own address re-resolved before the connect.
- RED (pristine 10.2.1, same recipe with only the patch step removed;
executable sha256
`3344c542d2ab71bf876e7e2f53a7aae743a77a227e3b51d9b314e961152edfe6`): W1 2/40
served with 26 stale-connect events and mark-downs charged to the healthy
sibling; C1 shows A +40 / B +0 — B never received a connection while the
failures happened on A's address.
The reproduction above and the committed test are the upstream-native ones.
--
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]