pingcap / pingcap/tidb

GC: Support TiDB BR,Lightning,Dumpling use keyspace level GC when keyspace already enable it

Open
#51,622 0 comments 0 reactions 0 assignees View on GitHub
type/enhancement
Dominant language
Go
Stars
40.5k
Forks
6.2k
PR merge metrics
PR metrics pending

Description

## Enhancement
Support TiDB BR,Lightning,Dumpling use keyspace level GC when keyspace already enable it.
ref https://github.com/pingcap/tidb/pull/51300

## Implementation
If you want to import or export data from a keyspace, first get the keyspace meta from PD and check whether `gc_management_type` in meta is `keyspace_level_gc`. If it is `keyspace_level_gc` then use the PD client function `UpdateServiceSafePointV2` to update the service safe point.

Contributor guide

Open the contributing guide

Research direction

Start by tracing the import and export paths for TiDB BR, Lightning, and Dumpling, then inspect how they obtain keyspace metadata from PD and where the PD client exposes UpdateServiceSafePointV2. Done means keyspace-level GC is detected from gc_management_type and the appropriate service safe point is updated for import and export operations.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
databases, distributed-systems
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.