-
Notifications
You must be signed in to change notification settings - Fork 719
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: add more test for hot statistics #4499
Conversation
[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. |
Codecov Report
@@ Coverage Diff @@
## master #4499 +/- ##
==========================================
- Coverage 74.78% 74.72% -0.07%
==========================================
Files 265 265
Lines 27845 27845
==========================================
- Hits 20825 20807 -18
- Misses 5150 5163 +13
- Partials 1870 1875 +5
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
core.WithInterval(&pdpb.TimeInterval{StartTimestamp: 0, EndTimestamp: 10}), | ||
core.SetReadBytes(30000*10), | ||
core.SetReadKeys(300000*10)) | ||
region := buildRegion(Read, 3, 10) |
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.
It changes the original value. Is it expected?
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.
It doesn't matter, just make sure it's hot
core.SetReportInterval(interval), | ||
core.SetWrittenBytes(interval*100*1024)) | ||
|
||
region := buildRegion(Write, 3, interval) |
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.
ditto
Signed-off-by: lhy1024 <admin@liudos.us>
3bb2056
to
bf57cf7
Compare
Signed-off-by: lhy1024 <admin@liudos.us>
for i := 1; i <= 200; i++ { | ||
checker(c, cache, region) | ||
rets := checker(c, cache, region) | ||
checkIntervalSumContinuous(c, intervalSums, rets, interval) |
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.
checkIntervalSumContinuous(c, intervalSums, rets, interval) | |
checkIntervalSumContinuous(c, intervalSums, checker(c, cache, region), interval) |
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.
it will be too long and difficult to understand.
} | ||
|
||
// prepare with random move peer to make the interval sum of peers are different |
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.
Does the comment need to be changed?
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.
I don't think we need to change it because the actual move peer is to add replica in the target store and then remove replica from the source store
Signed-off-by: lhy1024 <admin@liudos.us>
Signed-off-by: lhy1024 <admin@liudos.us>
/merge |
@disksing: 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: bfac82d
|
/rebuild |
1 similar comment
/rebuild |
/run-unit-test |
/rebuild |
1 similar comment
/rebuild |
Signed-off-by: lhy1024 <admin@liudos.us>
/merge |
@lhy1024: 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: e40dc69
|
Signed-off-by: lhy1024 admin@liudos.us
What problem does this PR solve?
Check List
Tests
Release note