-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
statistics: fix panic when getStatsReader
fail (#15651)
#15711
statistics: fix panic when getStatsReader
fail (#15651)
#15711
Conversation
/run-all-tests |
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
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
Your auto merge job has been accepted, waiting for 15628, 15635 |
/run-all-tests |
/merge |
Sorry @winoros, you don't have permission to trigger auto merge event on this branch. |
cherry-pick #15651 to release-4.0
What problem does this PR solve?
The
defer
func is not placed correctly. Thus it would panic in some cases.What is changed and how it works?
Check the error before the defer func. Avoid potential panic.
Related changes
Check List
Tests