Skip to content

fix: add skip_exit to drain_listeners to prevent premature pod termin…#1064

Merged
santoshpulluri merged 2 commits into
mainfrom
spulluri/fix_envoy_drain_issue_main
Apr 28, 2026
Merged

fix: add skip_exit to drain_listeners to prevent premature pod termin…#1064
santoshpulluri merged 2 commits into
mainfrom
spulluri/fix_envoy_drain_issue_main

Conversation

@santoshpulluri
Copy link
Copy Markdown
Contributor

Description

When upgrading Envoy from 1.35 to 1.37, pods were being terminated early
during graceful shutdown. The POST /drain_listeners?graceful endpoint causes
Envoy to automatically exit after the drain period (--drain-time-s), which
raced against consul-dataplane's own lifecycle sequencing:

Drain() → wait shutdownGracePeriodSeconds → Quit() → Kill()

Adding &skip_exit decouples the drain phase from the exit decision, ensuring
Envoy stays alive until consul-dataplane explicitly calls Quit() via
/quitquitquit, preserving the intended shutdown lifecycle control.

@santoshpulluri santoshpulluri requested review from a team as code owners April 28, 2026 04:28
@santoshpulluri santoshpulluri enabled auto-merge (squash) April 28, 2026 04:38
@santoshpulluri santoshpulluri merged commit 640720f into main Apr 28, 2026
41 checks passed
@santoshpulluri santoshpulluri added backport/1.8 Changes are backported to 1.8 backport/1.9 Changes are backported to 1.9 labels Apr 28, 2026
@santoshpulluri santoshpulluri added the backport/2.0 Changes are backported to 2.0 label Apr 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport/1.8 Changes are backported to 1.8 backport/1.9 Changes are backported to 1.9 backport/2.0 Changes are backported to 2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants