Skip to content

dynamic_modules: republish every priority when removing cluster hosts - #47527

Merged
agrawroh merged 1 commit into
envoyproxy:mainfrom
agrawroh:dm-safety-remove-hosts-priority
Sep 19, 2026
Merged

agrawroh merged 1 commit into
envoyproxy:mainfrom
agrawroh:dm-safety-remove-hosts-priority

Conversation

@agrawroh

Copy link
Copy Markdown
Member

Description

This PR makes removeHosts to republish every priority that held a removed host. Now, addHosts would also record each host at its real priority so the cross priority host map is cleaned when higher priority hosts are removed.


Commit Message: dynamic_modules: republish every priority when removing cluster hosts
Risk Level: Low
Testing: Added Tests
Docs Changes: N/A
Release Notes: N/A

removeHosts rebuilt and republished only priority 0, so hosts removed
from a higher priority were dropped from the internal map but their host
set was never republished. Worker load balancers kept routing to the
removed endpoints. removeHosts now republishes every priority that held a
removed host. addHosts also records each host at its real priority so the
cross priority host map is cleaned when higher priority hosts are removed.
A unit test covers the higher priority republish, the untouched priority,
the cross priority map cleanup, and a removal spanning priorities.

Signed-off-by: Rohit Agrawal <rohit.agrawal@databricks.com>
@agrawroh
agrawroh merged commit 079c167 into envoyproxy:main Sep 19, 2026
25 checks passed
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.

3 participants