-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
ddl: fix ErrGCTooEarly when adding an index to the partition table #14029
Conversation
Why we use |
Codecov Report
@@ Coverage Diff @@
## master #14029 +/- ##
===========================================
Coverage ? 80.1892%
===========================================
Files ? 482
Lines ? 120768
Branches ? 0
===========================================
Hits ? 96843
Misses ? 16202
Partials ? 7723 |
@wjhuang2016 |
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.
Rest LGTM
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
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
LGTM |
/run-all-tests |
cherry pick to release-3.0 in PR #14132 |
What problem does this PR solve?
The partition table has several
PartitionDefinition
. EveryPartitionDefinition
we will read the corresponding columns records and backfill the index data when adding an index. We will deal withPartitionDefinition
one by one.Before a
PartitionDefinition
read the records, we will usereorg.Job.SnapshotVer
to get range information. When we have twoPartitionDefinition
, and the first partition we do a long time. Then fetching the ranges for the second partition may encounter anErrGCTooEarly
error.What is changed and how it works?
Using the current version to get the range of a partition table.
Check List
Tests
Related changes
Release note
ErrGCTooEarly
when adding an index to the partition table