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

stats: fix panic when updating empty histogram #7640

Merged
merged 2 commits into from
Sep 9, 2018
Merged

Conversation

alivxxx
Copy link
Contributor

@alivxxx alivxxx commented Sep 7, 2018

What problem does this PR solve?

When updating the empty histogram, it will cause panic when we try to fetch the bucket.

What is changed and how it works?

Check the histogram bucket number before updating.

Check List

Tests

  • Unit test

Code changes

  • Has unexported function/method change

Side effects

  • None

Related changes

  • None

PTAL @coocood @zz-jason @winoros

Copy link
Member

@zz-jason zz-jason left a comment

Choose a reason for hiding this comment

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

LGTM

@coocood
Copy link
Member

coocood commented Sep 8, 2018

LGTM

@coocood
Copy link
Member

coocood commented Sep 8, 2018

/run-all-tests

@ngaut ngaut merged commit a34d699 into pingcap:master Sep 9, 2018
@alivxxx alivxxx deleted the panic branch September 10, 2018 04:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants