Skip to content

Conversation

@MyonKeminta
Copy link
Contributor

@MyonKeminta MyonKeminta commented Apr 17, 2025

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

  • Unit test
  • Integration test
  • Manual test (add detailed scripts or steps below)
  • No need to test
    • I checked and no code files have been changed.

Side effects

  • Performance regression: Consumes more CPU
  • Performance regression: Consumes more Memory
  • Breaking backward compatibility

Documentation

  • Affects user behaviors
  • Contains syntax changes
  • Contains variable changes
  • Contains experimental features
  • Changes MySQL compatibility

Release note

Please refer to Release Notes Language Style Guide to write a quality release note.

None

@ti-chi-bot
Copy link

ti-chi-bot bot commented Apr 17, 2025

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@ti-chi-bot ti-chi-bot bot added release-note-none Denotes a PR that doesn't merit a release note. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Apr 17, 2025
@tiprow
Copy link

tiprow bot commented Apr 17, 2025

Hi @MyonKeminta. Thanks for your PR.

PRs from untrusted users cannot be marked as trusted with /ok-to-test in this repo meaning untrusted PR authors can never trigger tests themselves. Collaborators can still trigger tests on the PR using /test all.

I understand the commands that are listed here.

Details

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.

@ti-chi-bot ti-chi-bot bot added component/dumpling This is related to Dumpling of TiDB. sig/planner SIG: Planner labels Apr 21, 2025
@MyonKeminta MyonKeminta changed the base branch from dedicated to feature/next-gen-tidb April 21, 2025 09:32
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>
@MyonKeminta MyonKeminta changed the base branch from feature/next-gen-tidb to master April 27, 2025 09:52
Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>
@MyonKeminta MyonKeminta removed the component/dumpling This is related to Dumpling of TiDB. label May 15, 2025
@ti-chi-bot ti-chi-bot bot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Jun 9, 2025
@MyonKeminta
Copy link
Contributor Author

/ok-to-test

@ti-chi-bot ti-chi-bot bot added the ok-to-test Indicates a PR is ready to be tested. label Jun 9, 2025
Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>
@MyonKeminta
Copy link
Contributor Author

/test all

@codecov
Copy link

codecov bot commented Jun 9, 2025

Codecov Report

Attention: Patch coverage is 80.74074% with 26 lines in your changes missing coverage. Please review.

Project coverage is 75.0039%. Comparing base (a2203f8) to head (347646e).
Report is 13 commits behind head on master.

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     
Flag Coverage Δ
integration 48.8603% <0.7407%> (?)
unit 72.4445% <80.7407%> (+0.0642%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
dumpling 52.7804% <ø> (ø)
parser ∅ <ø> (∅)
br 63.0047% <ø> (+16.0260%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@RidRisR RidRisR mentioned this pull request Jun 9, 2025
13 tasks
Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>
@MyonKeminta
Copy link
Contributor Author

/test all

Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>
@MyonKeminta
Copy link
Contributor Author

/retest

@MyonKeminta MyonKeminta marked this pull request as ready for review June 10, 2025 09:02
@ti-chi-bot ti-chi-bot bot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Jun 10, 2025
@ti-chi-bot ti-chi-bot bot added the needs-1-more-lgtm Indicates a PR needs 1 more LGTM. label Jun 10, 2025
// 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 {
Copy link
Contributor

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?

@ti-chi-bot ti-chi-bot bot added approved lgtm and removed needs-1-more-lgtm Indicates a PR needs 1 more LGTM. labels Jun 10, 2025
@ti-chi-bot
Copy link

ti-chi-bot bot commented Jun 10, 2025

[LGTM Timeline notifier]

Timeline:

  • 2025-06-10 09:11:44.400208174 +0000 UTC m=+346282.628523433: ☑️ agreed by tangenta.
  • 2025-06-10 09:13:10.926344787 +0000 UTC m=+346369.154660051: ☑️ agreed by cfzjywxk.

@MyonKeminta MyonKeminta added do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. and removed do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. labels Jun 10, 2025
@ti-chi-bot
Copy link

ti-chi-bot bot commented Jun 10, 2025

[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

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@MyonKeminta
Copy link
Contributor Author

/retest

@cfzjywxk
Copy link
Contributor

/test check-dev2

@tiprow
Copy link

tiprow bot commented Jun 10, 2025

@cfzjywxk: The specified target(s) for /test were not found.
The following commands are available to trigger required jobs:

  • /test fast_test_tiprow
  • /test tidb_parser_test

Use /test all to run all jobs.

Details

In response to this:

/test check-dev2

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.

@cfzjywxk
Copy link
Contributor

/retest

@tiancaiamao
Copy link
Contributor

/merge

@ti-chi-bot
Copy link

ti-chi-bot bot commented Jun 10, 2025

@tiancaiamao: We have migrated to builtin LGTM and approve plugins for reviewing.

👉 Please use /approve when you want approve this pull request.

The changes announcement: LGTM plugin changes

Details

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.

@tiancaiamao tiancaiamao added sig/transaction SIG:Transaction and removed sig/planner SIG: Planner labels Jun 10, 2025
@ti-chi-bot ti-chi-bot bot merged commit 5ea7f4e into pingcap:master Jun 10, 2025
27 checks passed
@MyonKeminta MyonKeminta deleted the m/gc-refactor branch June 11, 2025 02:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved lgtm ok-to-test Indicates a PR is ready to be tested. release-note-none Denotes a PR that doesn't merit a release note. sig/transaction SIG:Transaction size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants