-
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #15651 +/- ##
===========================================
Coverage 80.4843% 80.4843%
===========================================
Files 504 504
Lines 134584 134584
===========================================
Hits 108319 108319
Misses 17784 17784
Partials 8481 8481 |
How did you find this bug? |
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
/run-all-tests |
@winoros merge failed. |
/run-integration-common-test |
cherry pick to release-3.0 in PR #15709 |
cherry pick to release-3.1 in PR #15710 |
cherry pick to release-4.0 in PR #15711 |
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