-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
*: GC old infoschema version in the btree nodes #58390
Conversation
Hi @tiancaiamao. Thanks for your PR. PRs from untrusted users cannot be marked as trusted with I understand the commands that are listed here. 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. |
Make the log more reasonable:
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #58390 +/- ##
================================================
+ Coverage 73.5231% 74.8912% +1.3680%
================================================
Files 1681 1726 +45
Lines 464262 472440 +8178
================================================
+ Hits 341340 353816 +12476
+ Misses 102084 96351 -5733
- Partials 20838 22273 +1435
Flags with carried forward coverage won't be shown. Click here to find out more.
|
/test unit-test |
@tiancaiamao: Cannot trigger testing until a trusted user reviews the PR and leaves an In 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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: GMHDBJD, wjhuang2016 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:
Approvers can indicate their approval by writing |
[LGTM Timeline notifier]Timeline:
|
@tiancaiamao: The following test failed, say
Full PR test history. Your PR dashboard. 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. I understand the commands that are listed here. |
What problem does this PR solve?
Issue Number: ref #58321
Problem Summary:
What changed and how does it work?
If the user create table , drop table, create table , drop table ...
Or add and drop index or column, or just truncate table many many times...
Or even the simple create table, the intermediate version for DDL small steps...There would be a not of historial schema version in the infoschema v2 btree.
We can GC those historial schema version.
Check List
Tests
Run a 'add add column / drop column ' workload, watch the tidb log:
grep 'GC compact old' /home/genius/.tiup/data/zzz/tidb-0/tidb.log |less
The GC runs 20min a time, and in this case there are a lot MVCC data each deletion.
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.