pd icon indicating copy to clipboard operation
pd copied to clipboard

gc: Implement compatibility methods and `GetAllKeyspacesGCStates` method to `GCStateManager`

Open MyonKeminta opened this issue 8 months ago • 5 comments

What problem does this PR solve?

Issue Number: Ref #8978

What is changed and how does it work?

Implement compatibility methods and `GetAllKeyspacesGCStates` method to `GCStateManager`, which is planned to be the replacement of `SafePointManager`.

Blocked by:

  • ~~https://github.com/tikv/pd/pull/9109~~
  • https://github.com/tikv/pd/pull/9169

~~This PR is branched from #9109 which is not merged yet. If you want to view the diff in this PR without being disturbed by changes from #9109, please see: https://github.com/MyonKeminta/pd/compare/m/gc-state-storage...MyonKeminta:pd:m/gc-state-manager~~

Part of this PR is split out to https://github.com/tikv/pd/pull/9169 . Please merge #9169 first. To see changes in this PR based on #9169, see: https://github.com/MyonKeminta/pd/compare/m/gc-state-manager-partial...MyonKeminta:pd:m/gc-state-manager

Check List

Tests

  • Unit test

Code changes

Side effects

  • Possible performance regression
  • Increased code complexity

Related changes

Release note

None.

MyonKeminta avatar Mar 11 '25 07:03 MyonKeminta

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[bot] avatar Mar 11 '25 07:03 ti-chi-bot[bot]

Codecov Report

Attention: Patch coverage is 78.00000% with 33 lines in your changes missing coverage. Please review.

Project coverage is 75.87%. Comparing base (c22da0f) to head (b2e74cf). Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #9134      +/-   ##
==========================================
+ Coverage   75.80%   75.87%   +0.06%     
==========================================
  Files         477      477              
  Lines       73532    73679     +147     
==========================================
+ Hits        55743    55901     +158     
+ Misses      14304    14295       -9     
+ Partials     3485     3483       -2     
Flag Coverage Δ
unittests 75.87% <78.00%> (+0.06%) :arrow_up:

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

:rocket: New features to boost your workflow:
  • :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

codecov[bot] avatar Mar 11 '25 08:03 codecov[bot]

/retest

MyonKeminta avatar Mar 21 '25 08:03 MyonKeminta

/retest

MyonKeminta avatar Mar 21 '25 09:03 MyonKeminta

/hold Some details still need discussion.

MyonKeminta avatar Apr 10 '25 10:04 MyonKeminta

/retest

MyonKeminta avatar Apr 11 '25 10:04 MyonKeminta

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: JmPotato, rleungx

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:
  • ~~OWNERS~~ [JmPotato,rleungx]

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

ti-chi-bot[bot] avatar Apr 15 '25 05:04 ti-chi-bot[bot]

[LGTM Timeline notifier]

Timeline:

  • 2025-04-09 07:51:27.572139062 +0000 UTC m=+2242781.256375158: :ballot_box_with_check: agreed by JmPotato.
  • 2025-04-15 05:49:42.816532042 +0000 UTC m=+2753876.500768133: :ballot_box_with_check: agreed by rleungx.

ti-chi-bot[bot] avatar Apr 15 '25 05:04 ti-chi-bot[bot]

/unhold

MyonKeminta avatar Apr 15 '25 07:04 MyonKeminta

/retest

MyonKeminta avatar Apr 15 '25 08:04 MyonKeminta

/retest

MyonKeminta avatar Apr 15 '25 09:04 MyonKeminta