-
Notifications
You must be signed in to change notification settings - Fork 6.1k
gc_worker: Adapt to new GC API and support keyspace level GC #60632
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
Conversation
|
Skipping CI for Draft Pull Request. |
|
Hi @MyonKeminta. Thanks for your PR. PRs from untrusted users cannot be marked as trusted with I understand the commands that are listed here. DetailsInstructions 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 kubernetes-sigs/prow repository. |
0d55052 to
01a6f2f
Compare
Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>
Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>
Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>
01a6f2f to
0a4b70b
Compare
Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>
|
/ok-to-test |
Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>
|
/test all |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #60632 +/- ##
================================================
+ Coverage 73.1084% 75.0039% +1.8955%
================================================
Files 1729 1775 +46
Lines 481032 490590 +9558
================================================
+ Hits 351675 367962 +16287
+ Misses 107827 99680 -8147
- Partials 21530 22948 +1418
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>
|
/test all |
Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>
|
/retest |
| // TODO: Use result of AdvanceTxnSafePoint instead, which makes it unnecessary to manually check the config. | ||
| const cfgGCManagementType = "gc_management_type" | ||
| const cfgGCManagementTypeKeyspaceLevel = "keyspace_level" | ||
| if keyspaceMeta := w.store.GetCodec().GetKeyspaceMeta(); keyspaceMeta != nil && keyspaceMeta.Config[cfgGCManagementType] != cfgGCManagementTypeKeyspaceLevel { |
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.
@MyonKeminta How about pritting some logs here to display which keyspace name is configured and information about the mode?
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cfzjywxk, tangenta, tiancaiamao The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/retest |
|
/test check-dev2 |
|
@cfzjywxk: The specified target(s) for
Use DetailsIn 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 kubernetes-sigs/prow repository. |
|
/retest |
|
/merge |
|
@tiancaiamao: We have migrated to builtin 👉 Please use
DetailsInstructions 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?
Issue Number: ref #58720
Problem Summary:
What changed and how does it work?
This PR updates the implementation of GCWorker to adapt the changes of PD's GC related APIs made in tikv/pd#8978 . This update also makes it able to support keyspace level GC.
Requires:
Check List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.