-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
gc_worker: reduce GC scan locks when meeting region cache miss #18385
Conversation
Codecov Report
@@ Coverage Diff @@
## master #18385 +/- ##
================================================
- Coverage 79.1461% 79.1296% -0.0166%
================================================
Files 548 547 -1
Lines 147949 147726 -223
================================================
- Hits 117096 116895 -201
+ Misses 21369 21361 -8
+ Partials 9484 9470 -14 |
/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. But it's a little strange that don't solve the problem completely.
@youjiali1995, @MyonKeminta, PTAL. |
1 similar comment
@youjiali1995, @MyonKeminta, PTAL. |
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
@youjiali1995, @coocood, @jackysp, @MyonKeminta, PTAL. |
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
@youjiali1995, @MyonKeminta, @coocood, @jackysp, PTAL. |
1 similar comment
@youjiali1995, @MyonKeminta, @coocood, @jackysp, PTAL. |
Can we continue this or just merge this? @youjiali1995 @lysu |
@youjiali1995, @MyonKeminta, @coocood, @jackysp, PTAL. |
/run-all-tests |
Signed-off-by: ti-srebot <[email protected]>
cherry pick to release-3.0 in PR #18874 |
Signed-off-by: ti-srebot <[email protected]>
cherry pick to release-3.1 in PR #18875 |
Signed-off-by: ti-srebot <[email protected]>
cherry pick to release-4.0 in PR #18876 |
… (#18875) Signed-off-by: ti-srebot <[email protected]>
… (#18874) Signed-off-by: ti-srebot <[email protected]>
What problem does this PR solve?
Issue Number: close #xxx
Problem Summary:
currently, gc worker will rescan locks when meet region cache miss error which makes slow scan job become more slow.
What is changed and how it works?
What's Changed, How it Works:
when region cache miss error(current is a fake epochNotMatch), it just indicates "maybe region has changed and we need to reload region from PD", we can continue resolve scan lock result if all lock still in that region.
this can help situations like:
but it didn't help the situation that:
maybe we can improve it later(to avoid complex modification)
Related changes
Check List
Tests
Side effects
Release note
This change is