Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Various bug-fixes and improvements #20866

Merged
merged 3 commits into from
Mar 15, 2024
Merged

Conversation

hashi-derek
Copy link
Member

This PR is best reviewed commit-by-commit.

It contains two separate improvements:

  • Randomized shuffling of the server list returned by the WatchServers gRPC endpoint.
  • The fix of a potential goroutine leak in the xDS code.

…rs`.

This randomizes the list of servers to help reduce the chance of clients
all connecting to the same server simultaneously. Consul-dataplane is one
such client that does not randomize its own list of servers.
This commit ensures that the goroutine which receives xDS messages from
proxies will not block forever if the stream's context is cancelled but
the `processDelta()` function never consumes the message (due to being
terminated).
@hashi-derek hashi-derek requested a review from rboyer March 15, 2024 17:15
@github-actions github-actions bot added the theme/envoy/xds Related to Envoy support label Mar 15, 2024
@hashi-derek hashi-derek merged commit eabff25 into main Mar 15, 2024
84 of 85 checks passed
@hashi-derek hashi-derek deleted the derekm/NET-7834/various-fixes branch March 15, 2024 18:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr/no-backport theme/envoy/xds Related to Envoy support
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants