Skip to content

proxy: a hot-restart successor whose xDS initial fetch times out goes live with zero listeners and drains the parent — node-local connection refused when an agent restart overlaps a proxy fork #1085

Closed

Description

@bpalermo

Found by the 2026-09-30 re-soak (chart 1.0.13-84fb413, T0 10:57:18Z), the only liveness miss of the run: 9 / 719,984 prober liveness connection refused on main-worker-05 during the TRIPLE roll, plus 44 mesh_dns timeouts, 1 UDP dialer and 4 mp-dialer failures in the same 1.6 s window.

Timeline on w05:

  • 15:58:10.77Z agent aether-agent-prw67 goes down (TRIPLE); its gRPC server is back at 15:58:21.3/27.36Z.
  • 15:58:20.005Z proxy aether-proxy-wf8pd forks successor epoch 107 (the agent xDS socket is absent).
  • 15:58:35.562Z child: gRPC config: initial fetch timed out for …Cluster (15 s default initial_fetch_timeout).
  • 15:58:50.565Z child: initial fetch timed out for …Listener and, the same instant, all dependencies initialized. starting workers — with no listeners.
  • 15:58:50.587Z parent aether-proxy-plhtz: closing and draining listeners.
  • 15:58:51.07Z supervisor anchors the ready gate on LIVE.
  • 15:58:53.8–55.5Z the listeners finally arrive (ADS reconnect backoff had kept the child from re-fetching although the agent was back at :27).
  • 15:58:54.13–55.72Z 127.0.0.1:18081 refuses new connections.

It is the only initial fetch timed out line in the whole window, so this is a genuine overlap race, not a steady-state condition. Earlier soaks (rev231/234/239) had 0 liveness errors across the same TRIPLE, so it is either rare or new; not yet checked on earlier windows.

Candidate fixes (pick after reading the pinned Envoy hot-restart/init sequence):

  1. A hot-restart successor must not signal the parent drain / reach LIVE until its LDS has warmed at least once (e.g. initial_fetch_timeout: 0 on the bootstrap lds_config/cds_config so the timeout never fires — check what --parent-shutdown-time-s does if the child never finishes init, and what the supervisor's ready/child-silent gates do in that case).
  2. Or bound the child's ADS reconnect backoff while the agent socket is absent so the resources land before the timeout.

Evidence: grade in the session scratchpad soak-979-2/GRADE.md; memory project_soak_20260930_979_resoak_run.md.

🤖 Generated with Claude Code

https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions