-
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
tso: implement the Global TSO optimization #3390
Conversation
b77f5da
to
43a7d02
Compare
ef92962
to
8400f56
Compare
0d95b6d
to
1f200cb
Compare
7e90951
to
92c765a
Compare
Signed-off-by: JmPotato <[email protected]>
bee0bc7
to
2d6af6d
Compare
Signed-off-by: JmPotato <[email protected]>
Signed-off-by: JmPotato <[email protected]>
Signed-off-by: JmPotato <[email protected]>
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.
The rest LGTM
Signed-off-by: JmPotato <[email protected]>
Signed-off-by: JmPotato <[email protected]>
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
/run-all-tests |
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.
rest lgtm
// we need to validate it first before we write it into every Local TSO Allocator's memory. | ||
globalTSOResp = *estimatedMaxTSO | ||
if err = gta.SyncMaxTS(ctx, dcLocationMap, &globalTSOResp, skipCheck); err != nil { | ||
return pdpb.Timestamp{}, err |
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.
Do we need metrics about the failed counter?
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's necessary, and I will add some metrics in next PR.
[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 |
need update the proto. |
Signed-off-by: JmPotato <[email protected]>
/merge |
@JmPotato: 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: 19b53fd
|
* Implement the Global TSO optimization Signed-off-by: JmPotato <[email protected]> * Merge the upstream codes Signed-off-by: JmPotato <[email protected]> * Add more comments Signed-off-by: JmPotato <[email protected]> * Add back the missing updateTime update statement Signed-off-by: JmPotato <[email protected]> * Refine codes and comments Signed-off-by: JmPotato <[email protected]> * Update kvproto version Signed-off-by: JmPotato <[email protected]> * Refine some comments Signed-off-by: JmPotato <[email protected]> * Add a switch for Global TSO estimation Signed-off-by: JmPotato <[email protected]> * Address comments Signed-off-by: JmPotato <[email protected]> * Fix the problem of physical time advancing too fast Signed-off-by: JmPotato <[email protected]> * Fix the bugs of Local TSO physical time advancing too fast and TSO fallback Signed-off-by: JmPotato <[email protected]> * Reduce unnecessary memory usage Signed-off-by: JmPotato <[email protected]> * Reduce unnecessary memory usage Signed-off-by: JmPotato <[email protected]> * Fix the bug that tsoObject may be reset to a smaller one Signed-off-by: JmPotato <[email protected]> * Fix the static check Signed-off-by: JmPotato <[email protected]> * Fix typos Signed-off-by: JmPotato <[email protected]> * Address the comment Signed-off-by: JmPotato <[email protected]> * Remove enableGlobalTSOEstimation switch Signed-off-by: JmPotato <[email protected]> * Update kvproto Signed-off-by: JmPotato <[email protected]> Co-authored-by: Ti Chi Robot <[email protected]> Signed-off-by: lhy1024 <[email protected]>
Signed-off-by: JmPotato [email protected]
What problem does this PR solve?
Part of #2759. Resolve #3345. Also PTAL at pingcap/kvproto#716.
What is changed and how it works?
Check List
Tests
Release note