-
Notifications
You must be signed in to change notification settings - Fork 720
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
cluster: fix the bug that region statistics are not updated after flow-round-by-digit change (#4304) #4306
cluster: fix the bug that region statistics are not updated after flow-round-by-digit change (#4304) #4306
Conversation
…w-round-by-digit change close tikv#4295 Signed-off-by: HunDunDM <hundundm@gmail.com>
Signed-off-by: HunDunDM <hundundm@gmail.com>
Signed-off-by: HunDunDM <hundundm@gmail.com>
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
@@ -550,7 +550,8 @@ func GenerateRegionGuideFunc(enableLog bool) RegionGuideFunc { | |||
// Once flow has changed, will update the cache. | |||
// Because keys and bytes are strongly related, only bytes are judged. | |||
if region.GetRoundBytesWritten() != origin.GetRoundBytesWritten() || | |||
region.GetRoundBytesRead() != origin.GetRoundBytesRead() { | |||
region.GetRoundBytesRead() != origin.GetRoundBytesRead() || | |||
region.flowRoundDivisor < origin.flowRoundDivisor { |
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.
Why can we skip sync when divisor
becomes greater?
/merge |
@nolouch: It seems you want to merge this PR, I will help you trigger all the tests: /run-all-tests Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
This pull request has been accepted and is ready to merge. Commit hash: 8e3329e
|
/run-unit-tests |
/run-unit-tests |
Codecov Report
@@ Coverage Diff @@
## release-5.2 #4306 +/- ##
============================================
Coverage 74.78% 74.78%
============================================
Files 249 249
Lines 25660 25662 +2
============================================
+ Hits 19189 19192 +3
+ Misses 4792 4786 -6
- Partials 1679 1684 +5
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
This is an automated cherry-pick of #4304
What problem does this PR solve?
fix #4295
What is changed and how it works?
A change in
flowRoundDivisor
also considers that the flow statistics have changed.Check List
Tests
Code changes
Side effects
Related changes
Release note