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

channelz: wait for clean up before next test #2797

Merged
merged 5 commits into from
May 2, 2019

Conversation

lyuxuan
Copy link
Contributor

@lyuxuan lyuxuan commented Apr 30, 2019

No description provided.

@lyuxuan lyuxuan requested a review from menghanl April 30, 2019 22:43
@@ -107,6 +112,23 @@ func NewChannelzStorage() {
subChannels: make(map[int64]*subChannel),
})
idGen.reset()
return func() {
Copy link
Contributor

Choose a reason for hiding this comment

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

It feel weird to have the cleanup function returned when it's not a closure.
channelz is an internal package. It should be OK to add an exported function which blocks until storage is empty.

Also, the function needs a timeout (a const should be good enough).

@lyuxuan lyuxuan force-pushed the fixchannelzrace branch 2 times, most recently from c546be4 to 2b07726 Compare May 2, 2019 18:01
@lyuxuan lyuxuan merged commit 42baa8b into grpc:master May 2, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Nov 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants