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

fix: prevent RefreshBrokers leaking old brokers #2203

Merged
merged 1 commit into from
Apr 13, 2022

Conversation

k-wall
Copy link
Contributor

@k-wall k-wall commented Apr 1, 2022

#2202 exposes a goroutine test in the client's RefreshBrokers API.

On analysis I see that RefreshBrokers implementations leak the original seed brokers and the test itself was leaking a client. This PR resolves both issues.

@k-wall k-wall changed the title bugfix: RefreshBrokers leaks original seed brokers bugfix: RefreshBrokers leaks seed/dead seed brokers Apr 1, 2022
@dnwe dnwe force-pushed the refresh-brokers-leaks-broker branch from bd55d16 to 132afa5 Compare April 13, 2022 21:18
@dnwe dnwe changed the title bugfix: RefreshBrokers leaks seed/dead seed brokers fix: prevent RefreshBrokers leaking old brokers Apr 13, 2022
@dnwe dnwe added the fix label Apr 13, 2022
Copy link
Collaborator

@dnwe dnwe left a comment

Choose a reason for hiding this comment

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

LGTM thanks!

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.

2 participants