Repository navigation
fix(proxy-supervisor): don't externally kill the old hot-restart epoch (talos-validated) - #105
Merged
Merged
Conversation
talos-main e2e found that after a successful hot restart (epoch 0->1, hot_restart_generation 1->2, socket handoff), the new epoch aborted ~70s later with `hot restart sendmsg() ... errno 111` and the container restarted. Cause: the supervisor SIGTERMed the previous epoch at --parent-shutdown-time, racing Envoy's own hot-restart IPC; the new epoch's sendmsg to the killed parent failed and Envoy asserted. Envoy already coordinates parent shutdown itself via --parent-shutdown-time-s (as hot-restarter.py relies on), so the supervisor must not signal the parent -- it only reaps it on exit. Records the finding in the proposal. Co-Authored-By: Claude Opus 4.8 <[email protected]>
Strategy A re-validated after the parent-kill fix: hot restart epoch 0->1, hot_restart_generation 1->2, listeners preserved, old epoch reaped by Envoy's own parent-shutdown, restartCount stayed 0 ~104s past the restart. Notes the test-workload caveat (app path wasn't mesh-intercepted; guarantees proven via Envoy signals). Co-Authored-By: Claude Opus 4.8 <[email protected]>
bpalermo
force-pushed
the
spike/proxy-hot-restart
branch
from
June 9, 2026 23:41
3c41282 to
841461a
Compare
…ate) Co-Authored-By: Claude Opus 4.8 <[email protected]>
bpalermo
force-pushed
the
spike/proxy-hot-restart
branch
from
June 9, 2026 23:42
841461a to
f0d76a6
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Follow-up to #104. The merged Strategy-A supervisor had a bug that talos-main e2e caught: after a successful hot restart, the new epoch crashed ~70s later and the container restarted.
Root cause: the supervisor externally SIGTERMed the old epoch at
--parent-shutdown-time, racing Envoy's own hot-restart IPC. Envoy already terminates the parent itself (ashot-restarter.pyrelies on); the supervisor must only reap it.Fix: remove
scheduleParentShutdown/ the supervisor's parent-kill.--parent-shutdown-time-sis still passed to Envoy, which drives parent termination.Validation (talos-main, rev 30, fixed image)
hot_restart_generation1 → 2, 4 listeners preserved,server.liveheld.restartCountstayed 0 through ~104s past the restart (the window that previously crashed). In-place, no pod restart.Doc updated with the finding + the GREEN re-validation and a test-workload caveat (the
aether-testapp path wasn't mesh-intercepted during the run, so guarantees were proven via Envoy's own signals rather than an app-level zero-drop curl).Test plan
bazel test //agent/internal/proxy/hotrestart/...✅🤖 Generated with Claude Code