Skip to content

fix: envoy - honor shutdown readiness timeout [IS-0000] - #10074

Closed
jcarugati wants to merge 2 commits into
envoyproxy:mainfrom
jcarugati:jc/fix/envoy-gateway/shutdown-ready-timeout
Closed

jcarugati wants to merge 2 commits into
envoyproxy:mainfrom
jcarugati:jc/fix/envoy-gateway/shutdown-ready-timeout

Conversation

@jcarugati

@jcarugati jcarugati commented Sep 22, 2026 •

Copy link
Copy Markdown

Context

The shutdown manager's /shutdown/ready handler can wait longer than 10 seconds for Envoy's drain to finish, but the HTTP server's 10-second write deadline can expire before it sends the success response. Kubelet can then report a failed Envoy preStop hook even after the drain completes.

Changes

  • Bound the server write deadline to the configured readiness timeout plus a five-second response margin.
  • Add a regression test for the deadline invariant using a 75-second readiness timeout.

Validation

  • go test ./internal/cmd/envoy -run '^TestShutdownManagerWriteTimeout$' -count=1 (failed before the fix; passed afterward)
  • go test ./internal/cmd/... -count=1
  • go vet ./internal/cmd/envoy
  • golangci-lint run --config=tools/linter/golangci-lint/.golangci.yml ./internal/cmd/envoy (v2.13.1 built with Go 1.27.1)
  • git diff --check

Risk / Rollout Notes

The drain duration and readiness response semantics are unchanged. This extends the HTTP write deadline for the shutdown manager's two internal endpoints; a release containing this patch is needed before deployments benefit.

PR Checklist

  • Authorship & ownership: The contributor must review and attest to the generated change before this draft is marked ready.
  • DCO: The commit is signed off.
  • API agreed first: N/A; no API changes.
  • Required checks pass: Full upstream CI is pending.
  • Tests added/updated: A regression test covers the configured write deadline.
  • Docs: N/A; no user-facing API or configuration change.
  • Release notes: Added release-notes/current/bug_fixes/10074-shutdown-prestop-readiness-timeout.md.
  • Generated files committed: N/A; no generated input changed.
  • Scope & compatibility: The change is limited to the shutdown-manager HTTP server.
  • Codex review: Independent correctness and test/simplification reviews found no actionable issues.
  • Copilot review: Pending.

@netlify

netlify Bot commented Sep 22, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for cerulean-figolla-1f9435 ready!

Name Link
🔨 Latest commit f4b96c0
🔍 Latest deploy log https://app.netlify.com/projects/cerulean-figolla-1f9435/deploys/6ab2d3b5363f6d000874c633
😎 Deploy Preview https://deploy-preview-10074--cerulean-figolla-1f9435.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

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