-
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
syncer: use task runner to sync region #9159
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: okJiang <[email protected]>
Signed-off-by: okJiang <[email protected]>
/retest |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #9159 +/- ##
==========================================
- Coverage 76.37% 76.36% -0.02%
==========================================
Files 474 474
Lines 72400 72437 +37
==========================================
+ Hits 55297 55315 +18
- Misses 13644 13657 +13
- Partials 3459 3465 +6
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
/hold I will try to test in a real cluster. |
ctx.SyncRegionRunner.RunTask( | ||
regionID, | ||
ratelimit.SyncRegionToFollower, | ||
func(context.Context) { |
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 to add a unit test for it?
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.
LGTM
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: lhy1024 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
[LGTM Timeline notifier]Timeline:
|
What problem does this PR solve?
This PR only fixes the bug; there will still be some delay between the follower and leader regions. In the future, we will increase the concurrency of consumers to alleviate the delay between the follower and leader under these conditions.
Issue Number: Close #9154
What is changed and how does it work?
Check List
Tests
Release note