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

[v7] Proxy restart fixes #12546

Merged
merged 2 commits into from May 13, 2022
Merged

[v7] Proxy restart fixes #12546

merged 2 commits into from May 13, 2022

Conversation

espadolini
Copy link
Contributor

Backport #11802 to branch/v7

@espadolini espadolini enabled auto-merge (squash) May 12, 2022 09:12
* Remove unused backend wrapper from Cache

* Remove double printShutdownStatus

* Fix readyz race condition

* Test coverage for the readyz.monitor fix

* Close listeners immediately in proxy.shutdown

* Use and handle net.ErrClosed correctly

This adapts utils.IsUseOfClosedNetworkError to check for net.ErrClosed
even inside trace.Aggregate errors, makes it so that we always return
something that would pass errors.Is(err, net.ErrClosed) when returning
from a (net.Listener).Accept(), and handles closed listeners within our
various Serve() loops so that we don't hit spurious backoff waits while
shutting down.

* Close listeners early and emitters late

* Test coverage for the proxy listener changes

* Revert some errors back to trace.ConnectionProblem

* Reduce PR scope to just the proxy, add comments

* Improve error logging.
@espadolini espadolini force-pushed the espadolini/v7-proxy-restart branch from 2ec877b to fdc848c Compare May 13, 2022 11:34
@espadolini espadolini merged commit ce35726 into branch/v7 May 13, 2022
@espadolini espadolini deleted the espadolini/v7-proxy-restart branch May 13, 2022 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants