Skip to content
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

Support remove region by ps-ctl #9807

Merged
merged 10 commits into from
Feb 17, 2025

Conversation

CalvinNeo
Copy link
Member

@CalvinNeo CalvinNeo commented Jan 22, 2025

What problem does this PR solve?

Issue Number: ref #9722

Problem Summary:

What is changed and how it works?


Check List

Tests

  • Unit test
  • Integration test
  • Manual test (add detailed scripts or steps below)
  • No code

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

None

Signed-off-by: Calvin Neo <[email protected]>
@ti-chi-bot ti-chi-bot bot added do-not-merge/needs-linked-issue release-note-none Denotes a PR that doesn't merit a release note. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jan 22, 2025
f
Signed-off-by: Calvin Neo <[email protected]>
@CalvinNeo CalvinNeo changed the title DNM Support remove region by ps-ctl Support remove region by ps-ctl Feb 13, 2025
@CalvinNeo
Copy link
Member Author

@ti-chi-bot ti-chi-bot bot added approved needs-1-more-lgtm Indicates a PR needs 1 more LGTM. labels Feb 13, 2025
@JinheLin
Copy link
Contributor

In what scenarios can this function be used?

@CalvinNeo
Copy link
Member Author

CalvinNeo commented Feb 14, 2025

In what scenarios can this function be used?

Recover from the large txn, which include the following steps:

  • Delete all the replicas by deleting corresponding pd rules
  • Wait all regions of this table scheduled out of TiFlash
  • Use ps-ctl to delete all regions in KVStore
  • Restart TiFlash

By deleting all regions in KVStore, we can skip those broken regions while restoring. While its proxy counterpart would be removed through gc messages.

Copy link
Contributor

ti-chi-bot bot commented Feb 17, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: JaySon-Huang, Lloyd-Pottiger

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 [JaySon-Huang,Lloyd-Pottiger]

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 ti-chi-bot bot added lgtm and removed needs-1-more-lgtm Indicates a PR needs 1 more LGTM. labels Feb 17, 2025
Copy link
Contributor

ti-chi-bot bot commented Feb 17, 2025

[LGTM Timeline notifier]

Timeline:

  • 2025-02-13 08:23:36.175950166 +0000 UTC m=+517658.572172228: ☑️ agreed by Lloyd-Pottiger.
  • 2025-02-17 05:26:33.57901119 +0000 UTC m=+852635.975233250: ☑️ agreed by JaySon-Huang.

@ti-chi-bot ti-chi-bot bot merged commit f2fe643 into pingcap:master Feb 17, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved lgtm release-note-none Denotes a PR that doesn't merit a release note. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants