-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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 goroutine leak caused by updating rate quotas #11371
Conversation
…utine before starting the new one.
Make sure that when we modify a rate quota, we stop the existing goroutine before starting the new one.
Make sure that when we modify a rate quota, we stop the existing goroutine before starting the new one.
…) (#11380) Make sure that when we modify a rate quota, we stop the existing goroutine before starting the new one.
sink, _ := metrics.New(metrics.DefaultConfig(""), | ||
&metrics.BlackholeSink{}) | ||
conf := metrics.DefaultConfig("") | ||
conf.EnableRuntimeMetrics = false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was this intentionally disabled?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, to avoid it creating a goroutine that interferes with the leak test. I believe BlackholeSink is only used in tests.
No description provided.