domain: Fix the issue that the min start ts doesn't correctly block keyspace-level GC#61925
Conversation
…eyspace-level GC Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>
|
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. |
|
/test all |
|
@MyonKeminta: Cannot trigger testing until a trusted user reviews the PR and leaves an 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. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #61925 +/- ##
================================================
+ Coverage 73.0213% 75.1877% +2.1663%
================================================
Files 1735 1781 +46
Lines 481288 496500 +15212
================================================
+ Hits 351443 373307 +21864
+ Misses 108298 100076 -8222
- Partials 21547 23117 +1570
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 |
|
@MyonKeminta: Cannot trigger testing until a trusted user reviews the PR and leaves an 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. |
|
/test all |
|
@MyonKeminta: Cannot trigger testing until a trusted user reviews the PR and leaves an 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. |
Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>
|
/retest |
|
@MyonKeminta: Cannot trigger testing until a trusted user reviews the PR and leaves an 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. |
[LGTM Timeline notifier]Timeline:
|
|
/retest |
|
@MyonKeminta: Cannot trigger testing until a trusted user reviews the PR and leaves an 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. |
|
[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 |
|
/test pull-lightning-integration-test |
|
@cfzjywxk: Cannot trigger testing until a trusted user reviews the PR and leaves an 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. |
|
/ok-to-test |
|
/retest |
* origin/master: (129 commits) domain: Fix the issue that the min start ts doesn't correctly block keyspace-level GC (pingcap#61925) br: better control pd scheduler pause during log restore with filter (pingcap#61819) session: rename circuit breaker sysvar (pingcap#61951) dxfservice: create store for SYSTEM keyspace (pingcap#61752) docs: fix a dead link in CONTRIBUTORS.md (pingcap#61923) metrics/nextgengrafana: display keyspace separately (pingcap#61823) lightning: fix length check may be skipped for first line (pingcap#61874) planner: support `explain [analyze] <plan_digest>` for `explain explore` (pingcap#61942) planner: record explored plans into `tidb_statement_stats` when running `explain explore` (pingcap#61850) fix(runaway): ensure DistSQLContext's checker is synchronized with session variables (pingcap#61907) expression,planner: reuse the propOuterJoinConstSolver to improve performance (pingcap#61913) ddl,planner: remove unused and meaningless code (pingcap#61936) planner: remove unused field from physicalTableScan. (pingcap#61935) workload-learning: Extract metrics from cluster statements stats (pingcap#61378) executor: minor cleanup in builder.go (pingcap#61924) session: rename GetDomainInfoSchema to GetLatestInfoSchema (pingcap#61894) ingest: retry failed regions when batch scatter regions (pingcap#61722) planner: add tpch q1,q2,q3 benchmark (pingcap#61898) planner: fix uninit timeout for loading bindings (pingcap#61891) executor: report error when admin check on multiple tables (pingcap#61828) ...
What problem does this PR solve?
Issue Number: ref #58720
Problem Summary:
What changed and how does it work?
TiDB saves the min start ts to etcd, but the path to store this information is always without the keyspace prefix. In keyspace-level GC mode, this causes the min start ts not visible to GC and unable to block GC from advancing.
In our final refactor plan, the min start ts mechanism is expected to be replaced by the GC barriers, but it still needs time to get implemented. We need a temporary quick fix for this problem before the replacement is ready.
Manually testes:
Running a transaction in keyspace 1 for 30 minutes, not blocking other keyspaces:
Check List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.