-
Notifications
You must be signed in to change notification settings - Fork 726
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
server: Fix bug for region_score with store's used_size is zero #2471
Conversation
Signed-off-by: JaySon-Huang <[email protected]>
No release note, Please follow https://github.com/pingcap/community/blob/master/contributors/release-note-checker.md |
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.
Good. Thanks very much.
@JaySon-Huang Can you tell more about why the used size is 0? |
Signed-off-by: JaySon-Huang <[email protected]>
@rleungx It is detected by a special version of TiFlash, which report zero bytes used with non-zero regions. |
/merge |
/run-all-tests |
cherry pick to release-3.1 failed |
cherry pick to release-4.0 in PR #2474 |
… (#2477) Signed-off-by: JaySon-Huang <[email protected]>
… (#2474) Signed-off-by: JaySon-Huang <[email protected]>
Signed-off-by: JaySon-Huang [email protected]
What problem does this PR solve?
Fix #2470
What is changed and how it works?
If store's used size is zero, just set
amplification = 1
to avoid divide by zero error.Check List
Tests
Related changes
Release note