-
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: add addingDefinition
field for adding partition replica check (#18495)
#18865
ddl: add addingDefinition
field for adding partition replica check (#18495)
#18865
Conversation
/run-all-tests |
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
c100f25
to
d7f93a3
Compare
Signed-off-by: AilinKid <314806019@qq.com>
91042a8
to
4318b8e
Compare
/run-all-tests |
aa4acef
to
99f52ba
Compare
/run-all-tests |
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
/run-unit-test |
/run-check_dev |
/run-unit-test |
/run-unit-test |
4d4ff12
to
fa9cae5
Compare
/run-all-tests |
/run-all-tests |
/run-unit-test |
/merge |
/run-all-tests |
/merge |
Sorry @imtbkcat, you don't have permission to trigger auto merge event on this branch. |
cherry-pick #18495 to release-4.0
Signed-off-by: AilinKid 314806019@qq.com
What problem does this PR solve?
Issue Number: close #18496
Problem Summary:
It is reported that if a table is in tiflash replica mode and it's available state is
true
, the new added partition will cause query block because the new added partition hasn't been replicated completely.That's why we wanna add a mid state for adding partiton. In the delete-only state, the
DDL
owner will check for the new added partition's replica info. Once it is completed, then make it public.What is changed and how it works?
What's Changed:
1: add a mid state (delete only for add partiton)
2: add the rollback logic for add partition
Related changes
pingcap/docs
/pingcap/docs-cn
:Check List
Tests
Side effects
Release note