-
Notifications
You must be signed in to change notification settings - Fork 727
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: filter region heartbeats that contain overflow flow #3415
Conversation
Signed-off-by: Zheng Xiangsheng <hundundm@gmail.com>
Signed-off-by: Zheng Xiangsheng <hundundm@gmail.com>
Codecov Report
@@ Coverage Diff @@
## master #3415 +/- ##
==========================================
+ Coverage 74.92% 74.96% +0.03%
==========================================
Files 244 244
Lines 23578 23583 +5
==========================================
+ Hits 17666 17679 +13
+ Misses 4325 4318 -7
+ Partials 1587 1586 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
// It may be caused by overflow, refer to https://github.com/tikv/pd/issues/3379. | ||
// They need to be filtered so as not to affect downstream. | ||
// (flow size >= 1024TB) | ||
ImpossibleFlowSize = 1 << 50 |
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.
IMO, we can directly judge if the value is less than zero and there is no need to create a variable.
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.
Values very close to the upper limit of int64 are also very dangerous.
Please merge this before 5.0 release. |
[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 writing |
Signed-off-by: HunDunDM <hundundm@gmail.com> # Conflicts: # server/core/region.go
/merge |
@HunDunDM: 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: 0b90297
|
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
cherry pick to release-4.0 in PR #3472 |
* cluster: filter region heartbeats that contain overflow flow Signed-off-by: Zheng Xiangsheng <hundundm@gmail.com> * add unit test Signed-off-by: Zheng Xiangsheng <hundundm@gmail.com> * fix Signed-off-by: Zheng Xiangsheng <hundundm@gmail.com>
Signed-off-by: HunDunDM <hundundm@gmail.com>
Signed-off-by: Zheng Xiangsheng hundundm@gmail.com
What problem does this PR solve?
/region
in the API may return a huge written_keys #3379What is changed and how it works?
Check List
Tests
Release note