Skip to content
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

Merged
merged 7 commits into from
Aug 3, 2020

Conversation

ti-srebot
Copy link
Contributor

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

  • PR to update pingcap/docs/pingcap/docs-cn:

Check List

Tests

  • Unit test
  • Integration test

Side effects

  • Breaking backward compatibility

Release note

  • add delete only state for add partition replica check
  • this pr will cause compatibility problem, when do DDL action in rolling upgrade

@ti-srebot
Copy link
Contributor Author

/run-all-tests

@ti-srebot ti-srebot added compatibility-breaker Violation of forwards/backwards compatibility in a design-time piece. sig/sql-infra SIG: SQL Infra type/4.0-cherry-pick labels Jul 29, 2020
@ti-srebot ti-srebot added this to the v4.0.5 milestone Jul 29, 2020
ddl/ddl_worker_test.go Outdated Show resolved Hide resolved
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
ddl/ddl_worker_test.go Outdated Show resolved Hide resolved
@AilinKid AilinKid added the priority/release-blocker This issue blocks a release. Please solve it ASAP. label Aug 3, 2020
Signed-off-by: AilinKid <314806019@qq.com>
@AilinKid
Copy link
Contributor

AilinKid commented Aug 3, 2020

/run-all-tests

.
Signed-off-by: AilinKid <314806019@qq.com>
@AilinKid
Copy link
Contributor

AilinKid commented Aug 3, 2020

/run-all-tests

Copy link
Contributor

@crazycs520 crazycs520 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ti-srebot ti-srebot added the status/LGT1 Indicates that a PR has LGTM 1. label Aug 3, 2020
Copy link
Contributor

@djshow832 djshow832 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ti-srebot ti-srebot added status/LGT2 Indicates that a PR has LGTM 2. and removed status/LGT1 Indicates that a PR has LGTM 1. labels Aug 3, 2020
@AilinKid
Copy link
Contributor

AilinKid commented Aug 3, 2020

/run-unit-test

@AilinKid
Copy link
Contributor

AilinKid commented Aug 3, 2020

/run-check_dev

@imtbkcat
Copy link

imtbkcat commented Aug 3, 2020

/run-unit-test

@imtbkcat
Copy link

imtbkcat commented Aug 3, 2020

/run-unit-test
/run-check_dev

.
Signed-off-by: AilinKid <314806019@qq.com>
@AilinKid
Copy link
Contributor

AilinKid commented Aug 3, 2020

/run-all-tests

@AilinKid
Copy link
Contributor

AilinKid commented Aug 3, 2020

/run-all-tests

@AilinKid
Copy link
Contributor

AilinKid commented Aug 3, 2020

/run-unit-test

@bb7133
Copy link
Member

bb7133 commented Aug 3, 2020

/merge

@ti-srebot ti-srebot added the status/can-merge Indicates a PR has been approved by a committer. label Aug 3, 2020
@ti-srebot
Copy link
Contributor Author

/run-all-tests

@imtbkcat
Copy link

imtbkcat commented Aug 3, 2020

/merge

@ti-srebot
Copy link
Contributor Author

Sorry @imtbkcat, you don't have permission to trigger auto merge event on this branch.

@ti-srebot ti-srebot added status/LGT3 The PR has already had 3 LGTM. and removed status/LGT2 Indicates that a PR has LGTM 2. labels Aug 3, 2020
@bb7133 bb7133 merged commit 1dc2262 into pingcap:release-4.0 Aug 3, 2020
@solotzg solotzg deleted the release-4.0-c7c98d738068 branch August 3, 2020 10:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compatibility-breaker Violation of forwards/backwards compatibility in a design-time piece. priority/release-blocker This issue blocks a release. Please solve it ASAP. sig/sql-infra SIG: SQL Infra status/can-merge Indicates a PR has been approved by a committer. status/LGT3 The PR has already had 3 LGTM. type/4.0-cherry-pick
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants