-
Notifications
You must be signed in to change notification settings - Fork 289
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
kv/client: fix force reconnect in client v2 #1682
Conversation
/run-all-tests |
/run-all-tests |
/run-leak-tests |
/run-all-tests |
/run-leak-tests |
default: | ||
// rtsUpdateCh block often means too many regions are suffering | ||
// lock resolve, the kv client status is not very healthy. | ||
log.Warn("region is not upsert into rts manager", zap.Uint64("region-id", regionID)) |
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.
What is "upsert"?
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 is a special syntax in some RDBMS, which means insert or update
, ref: https://en.wikipedia.org/wiki/Merge_(SQL)
/run-all-tests |
1 similar comment
/run-all-tests |
/run-integration-tests |
What will happen if TiKV pushes an old resolved ts (the resolved ts for the incremental scan) immediately after the Initialize event? This will be the case if you use TiKV master branch. |
I'm afraid there do exist some corner cases
From 1 we know use the |
Besides, Does the |
Also add event time in resovled ts item and solve problem 2, the problem 1 exists now. This PR will not solve unchanged resolved ts problem |
/run-all-tests |
/run-all-tests |
/run-unit-tests |
/lgtm |
/run-all-tests |
Codecov Report
@@ Coverage Diff @@
## master #1682 +/- ##
================================================
+ Coverage 53.8313% 53.9778% +0.1465%
================================================
Files 153 153
Lines 16117 16177 +60
================================================
+ Hits 8676 8732 +56
- Misses 6529 6531 +2
- Partials 912 914 +2 |
/lgtm |
[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 |
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 2dfe202
|
Signed-off-by: ti-srebot <[email protected]>
cherry pick to release-4.0 in PR #1721 |
/cherry-pick release-5.0 |
Signed-off-by: ti-chi-bot <[email protected]>
@hi-rustin: new pull request created: #1734. In response to this:
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. |
What problem does this PR solve?
note release-5.0 should be picked manually.
What is changed and how it works?
resolvedTsManager
to manage the time of last event in each un-initialized region, renameresolvedTsManager
toregionTsManager
Check List
Tests
Release note