-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
[release/5.0] Handle Counter Polling Interval of 0 #54035
Conversation
…sEnabled after not holding lock * add test for setting interval to 0
Tagging subscribers to this area: @tarekgh, @tommcdon, @pjanotti |
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.
LGTM
I'll update the test to the one in #54081 once it merges |
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.
Approved. We will take for consideration in 5.0.x
Backport of #53836 to release/5.0
/cc @hoyosjs @josalem
Customer Impact
When listening to EventCounters there is a dedicated thread that is supposed to publish the metric values via EventSource on a periodic timer. However due a bug it is possible to put it into an infinite loop here. This occurs any time _pollingIntervalMilliseconds <= 0, which could occur for a few reasons:
(from #53564)
Testing
The included test covers scenario 1, and manual testing was done for scenario 2.
Risk
This patch reduces overall risk by removing any looping based on user input. This should prevent scenario 1 and 2 above.