Skip to content

watch-dog: fix worker-thread watch-dog threads using main-thread config#43522

Merged
RyanTheOptimist merged 7 commits into
envoyproxy:mainfrom
adisuissa:guard_dog_worker_thread_fix
Feb 27, 2026
Merged

watch-dog: fix worker-thread watch-dog threads using main-thread config#43522
RyanTheOptimist merged 7 commits into
envoyproxy:mainfrom
adisuissa:guard_dog_worker_thread_fix

Conversation

@adisuissa
Copy link
Copy Markdown
Contributor

Commit Message: watch-dog: fix worker-thread watch-dog threads using main-thread config
Additional Description:
In PR #30896 the watchdog instantiation was refactored, and a bug was introduced where both the main thread's and the worker threads' watch-dogs are configured using the main-thread's config.
This PR fixes the issue by passing the correct configuration.

Risk Level: Medium - may change the behavior of systems where worker-threads' watch-dogs will trigger.

Testing: Added unit and integration tests.
Docs Changes: N/A
Release Notes: Added.
Platform Specific Features: N/A
Runtime guard: Added envoy.restart_features.worker_threads_watchdog_fix that can temporarily disable the fix.

Signed-off-by: Adi Suissa-Peleg <adip@google.com>
@repokitteh-read-only
Copy link
Copy Markdown

As a reminder, PRs marked as draft will not be automatically assigned reviewers,
or be handled by maintainer-oncall triage.

Please mark your PR as ready when you want it to be reviewed!

🐱

Caused by: #43522 was opened by adisuissa.

see: more, trace.

Signed-off-by: Adi Suissa-Peleg <adip@google.com>
Signed-off-by: Adi Suissa-Peleg <adip@google.com>
…read_fix

Signed-off-by: Adi Suissa-Peleg <adip@google.com>
Signed-off-by: Adi Suissa-Peleg <adip@google.com>
…read_fix

Signed-off-by: Adi Suissa-Peleg <adip@google.com>
Signed-off-by: Adi Suissa-Peleg <adip@google.com>
@adisuissa adisuissa marked this pull request as ready for review February 18, 2026 19:30
@repokitteh-read-only
Copy link
Copy Markdown

CC @envoyproxy/runtime-guard-changes: FYI only for changes made to (source/common/runtime/runtime_features.cc).

🐱

Caused by: #43522 was ready_for_review by adisuissa.

see: more, trace.

@adisuissa
Copy link
Copy Markdown
Contributor Author

/assign-from @envoyproxy/senior-maintainers

@repokitteh-read-only
Copy link
Copy Markdown

@envoyproxy/senior-maintainers assignee is @RyanTheOptimist

🐱

Caused by: a #43522 (comment) was created by @adisuissa.

see: more, trace.

@adisuissa
Copy link
Copy Markdown
Contributor Author

/assing-from @envoyproxy/envoy-maintainers

@adisuissa
Copy link
Copy Markdown
Contributor Author

/assign-from @envoyproxy/envoy-maintainers

@repokitteh-read-only
Copy link
Copy Markdown

@envoyproxy/envoy-maintainers assignee is @RyanTheOptimist

🐱

Caused by: a #43522 (comment) was created by @adisuissa.

see: more, trace.

@adisuissa
Copy link
Copy Markdown
Contributor Author

/assign-from @envoyproxy/envoy-maintainers

@repokitteh-read-only
Copy link
Copy Markdown

@envoyproxy/envoy-maintainers assignee is @jwendell

🐱

Caused by: a #43522 (comment) was created by @adisuissa.

see: more, trace.

@adisuissa
Copy link
Copy Markdown
Contributor Author

/assign-from @envoyproxy/envoy-maintainers

@repokitteh-read-only
Copy link
Copy Markdown

@envoyproxy/envoy-maintainers assignee is @yanavlasov

🐱

Caused by: a #43522 (comment) was created by @adisuissa.

see: more, trace.

@adisuissa
Copy link
Copy Markdown
Contributor Author

Seems really challenging to get a non-Googler c++ maintainer these days.
/assign-from @envoyproxy/envoy-maintainers

@repokitteh-read-only
Copy link
Copy Markdown

@envoyproxy/envoy-maintainers assignee is @adisuissa

🐱

Caused by: a #43522 (comment) was created by @adisuissa.

see: more, trace.

@adisuissa adisuissa removed their assignment Feb 20, 2026
@adisuissa
Copy link
Copy Markdown
Contributor Author

/assign-from @envoyproxy/envoy-maintainers

@repokitteh-read-only
Copy link
Copy Markdown

@envoyproxy/envoy-maintainers assignee is @mathetake

🐱

Caused by: a #43522 (comment) was created by @adisuissa.

see: more, trace.

@adisuissa
Copy link
Copy Markdown
Contributor Author

Core code changes require a senior-maintainer review.
/assign-from @envoyproxy/senior-maintainers

@repokitteh-read-only
Copy link
Copy Markdown

@envoyproxy/senior-maintainers assignee is @phlax

🐱

Caused by: a #43522 (comment) was created by @adisuissa.

see: more, trace.

@adisuissa
Copy link
Copy Markdown
Contributor Author

/assign-from @envoyproxy/senior-maintainers

@repokitteh-read-only
Copy link
Copy Markdown

@envoyproxy/senior-maintainers assignee is @phlax

🐱

Caused by: a #43522 (comment) was created by @adisuissa.

see: more, trace.

@adisuissa
Copy link
Copy Markdown
Contributor Author

/assign-from @envoyproxy/senior-maintainers

@repokitteh-read-only
Copy link
Copy Markdown

@envoyproxy/senior-maintainers assignee is @yanavlasov

🐱

Caused by: a #43522 (comment) was created by @adisuissa.

see: more, trace.

Copy link
Copy Markdown
Contributor

@KBaichoo KBaichoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow, nice find

Copy link
Copy Markdown
Contributor

@RyanTheOptimist RyanTheOptimist left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@RyanTheOptimist RyanTheOptimist merged commit be898bb into envoyproxy:main Feb 27, 2026
28 checks passed
bmjask pushed a commit to bmjask/envoy that referenced this pull request Mar 14, 2026
…ig (envoyproxy#43522)

Commit Message: watch-dog: fix worker-thread watch-dog threads using
main-thread config
Additional Description:
In PR envoyproxy#30896 the watchdog instantiation was refactored, and a bug was
introduced where both the main thread's and the worker threads'
watch-dogs are configured [using the main-thread's
config](https://github.com/envoyproxy/envoy/pull/30896/changes#diff-a39ff317d26d008f20bca53f5e3f4e171d169a5702f82409ca941bddaac46064L781-L784).
This PR fixes the issue by passing the correct configuration.

Risk Level: Medium - may change the behavior of systems where
worker-threads' watch-dogs will trigger.

Testing: Added unit and integration tests.
Docs Changes: N/A
Release Notes: Added.
Platform Specific Features: N/A
Runtime guard: Added
`envoy.restart_features.worker_threads_watchdog_fix` that can
temporarily disable the fix.

---------

Signed-off-by: Adi Suissa-Peleg <adip@google.com>
Signed-off-by: bjmask <11672696+bjmask@users.noreply.github.com>
bvandewalle pushed a commit to bvandewalle/envoy that referenced this pull request Mar 17, 2026
…ig (envoyproxy#43522)

Commit Message: watch-dog: fix worker-thread watch-dog threads using
main-thread config
Additional Description:
In PR envoyproxy#30896 the watchdog instantiation was refactored, and a bug was
introduced where both the main thread's and the worker threads'
watch-dogs are configured [using the main-thread's
config](https://github.com/envoyproxy/envoy/pull/30896/changes#diff-a39ff317d26d008f20bca53f5e3f4e171d169a5702f82409ca941bddaac46064L781-L784).
This PR fixes the issue by passing the correct configuration.

Risk Level: Medium - may change the behavior of systems where
worker-threads' watch-dogs will trigger.

Testing: Added unit and integration tests.
Docs Changes: N/A
Release Notes: Added.
Platform Specific Features: N/A
Runtime guard: Added
`envoy.restart_features.worker_threads_watchdog_fix` that can
temporarily disable the fix.

---------

Signed-off-by: Adi Suissa-Peleg <adip@google.com>
fishcakez pushed a commit to fishcakez/envoy that referenced this pull request Mar 25, 2026
…ig (envoyproxy#43522)

Commit Message: watch-dog: fix worker-thread watch-dog threads using
main-thread config
Additional Description:
In PR envoyproxy#30896 the watchdog instantiation was refactored, and a bug was
introduced where both the main thread's and the worker threads'
watch-dogs are configured [using the main-thread's
config](https://github.com/envoyproxy/envoy/pull/30896/changes#diff-a39ff317d26d008f20bca53f5e3f4e171d169a5702f82409ca941bddaac46064L781-L784).
This PR fixes the issue by passing the correct configuration.

Risk Level: Medium - may change the behavior of systems where
worker-threads' watch-dogs will trigger.

Testing: Added unit and integration tests.
Docs Changes: N/A
Release Notes: Added.
Platform Specific Features: N/A
Runtime guard: Added
`envoy.restart_features.worker_threads_watchdog_fix` that can
temporarily disable the fix.

---------

Signed-off-by: Adi Suissa-Peleg <adip@google.com>
krinkinmu pushed a commit to grnmeira/envoy that referenced this pull request Apr 20, 2026
…ig (envoyproxy#43522)

Commit Message: watch-dog: fix worker-thread watch-dog threads using
main-thread config
Additional Description:
In PR envoyproxy#30896 the watchdog instantiation was refactored, and a bug was
introduced where both the main thread's and the worker threads'
watch-dogs are configured [using the main-thread's
config](https://github.com/envoyproxy/envoy/pull/30896/changes#diff-a39ff317d26d008f20bca53f5e3f4e171d169a5702f82409ca941bddaac46064L781-L784).
This PR fixes the issue by passing the correct configuration.

Risk Level: Medium - may change the behavior of systems where
worker-threads' watch-dogs will trigger.

Testing: Added unit and integration tests.
Docs Changes: N/A
Release Notes: Added.
Platform Specific Features: N/A
Runtime guard: Added
`envoy.restart_features.worker_threads_watchdog_fix` that can
temporarily disable the fix.

---------

Signed-off-by: Adi Suissa-Peleg <adip@google.com>
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.

7 participants