Skip to content

proxy: carry envoyproxy/envoy#47743 (UDP hot-restart forwarding by listener address + netns) on the 726d7ac pin - #970

Merged
bpalermo merged 1 commit into
mainfrom
proxy/carry-envoy-47743
Sep 26, 2026
Merged

bpalermo merged 1 commit into
mainfrom
proxy/carry-envoy-47743

Conversation

@bpalermo

Copy link
Copy Markdown
Owner

Carries the upstream fix for the namespace-blind UDP hot-restart forwarding registry (envoyproxy/envoy#47742 / PR #47743, single commit e92e96dc7a on top of exactly our pin) as a single_version_override(patches = [...]) on the registry module, so it can be validated on talos-main before it merges upstream. Context: #967.

What

  • proxy/bazel/patches/envoy-47743-udp-hot-restart-forwarding-netns.patch: the source-only hunks of the PR diff (envoy/network/connection_handler.h, source/server/hot_restart.proto, hot_restarting_{parent,child}.{h,cc}, active_udp_listener.cc, source/common/quic/active_quic_listener.cc); test, docs and changelog hunks dropped. git apply --check clean at 726d7ac.
  • proxy/MODULE.bazel: the override, with the drop condition (the next pin that contains the merged PR). proxy/README.md "Customizing" lists the carried patch.
  • bazel build --nobuild --config=release //:envoy fetches the patched module: the fetched hot_restart.proto carries listener_addr = 6 and network_namespace = 7.

Validation plan on talos-main (two proxy DaemonSet rolls after the chart pin lands)

  1. Roll 1, unpatched parent → patched child (control): the parent still forwards only the datagram destination, so the child takes the old destination-based lookup; expect today's loss (2–3 udp-dialer cycles per node inside the 15 s overlap).
  2. Roll 2, patched → patched: exercises the fix. Read per node: udp-dialer fail delta, the dialer's capture_udp_udp-dialer-* counters across the overlap, and the E3 signature (any capture_udp_* prefix other than the dialer's showing sessions during the roll).
  3. Per the E1 reconstruction on UDP is not hitless across an Envoy hot restart: 10–15 s of UDP loss per node on every proxy roll (TPROXY capture, rev239 soak) #967, the datagrams lost today are held on the right pod's listener until the child's parent-terminate (the child's inherited UDP socket is paused for the whole overlap), not misdelivered — so the expected result is no regression, no change in loss, and the timing evidence, not this patch, decides fix B. The numbers from both rolls go on UDP is not hitless across an Envoy hot restart: 10–15 s of UDP loss per node on every proxy roll (TPROXY capture, rev239 soak) #967 and to the upstream PR either way.

🤖 Generated with Claude Code

https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr

…stener address + netns) as a patch on the 726d7ac pin

aether#967: during a hot restart the parent forwards datagrams of unknown UDP
sessions to the child keyed only by ip:port, so N per-netns capture listeners
on 0.0.0.0:18082 collapse onto the first-registered one in the child (wrong
udp_proxy instance, reply from the wrong pod netns). Upstream fix e92e96dc7a
(on top of exactly our pin) forwards the listener's bind address + network
namespace and keys the child's registry on both, keeping the old destination
lookup for parents that predate the fields.

Applied as single_version_override(patches) on the registry module; the
source-only hunks (connection_handler.h, hot_restart.proto,
hot_restarting_{parent,child}.{h,cc}, active_udp_listener.cc,
active_quic_listener.cc), test/docs/changelog dropped. `git apply --check`
clean at 726d7ac; `bazel build --nobuild --config=release //:envoy` fetches
the patched module (hot_restart.proto carries listener_addr = 6 and
network_namespace = 7). Drop the override at the next pin that contains the
merged PR.

Validation on talos-main (two proxy rolls, per the plan on #967): roll 1 is
unpatched parent -> patched child (control: old destination-based lookup, same
loss as today); roll 2 is patched -> patched. E1 predicts the loss stays the
same either way (the datagrams were held on the right listener, not
misdelivered), so the expected result is "no regression, no effect" for the
forwarding registry and the timing evidence decides fix B.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant