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 a switch for multi schema change & make it compatible with old test cases #21533

Merged
merged 11 commits into from
Dec 10, 2020

Conversation

AilinKid
Copy link
Contributor

@AilinKid AilinKid commented Dec 7, 2020

Signed-off-by: AilinKid 314806019@qq.com

What problem does this PR solve?

Add a switch for multi schema change to make sure this feature won't affect release-5.0

What is changed and how it works?

Add a global variable for control whether it is supported for multi schema change.
Besides, there are huge tests (written with a common suite, not a serial suite), so adding a session variable setting for every test case is a burden for us. So I try to make the shortcut in the bootstrap stage of test storage. There is a referred case with variable.TiDBPartitionPruneMode from suli right above my code.

Related changes

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

Check List

Tests

  • Unit test

Release note

  • ddl: add a switch for multi schema change & make it compatible with old test cases.

…st cases

Signed-off-by: AilinKid <314806019@qq.com>
@AilinKid AilinKid added the sig/sql-infra SIG: SQL Infra label Dec 7, 2020
.
Signed-off-by: AilinKid <314806019@qq.com>
@AilinKid
Copy link
Contributor Author

AilinKid commented Dec 8, 2020

/run-all-tests

@AilinKid
Copy link
Contributor Author

AilinKid commented Dec 8, 2020

/run-tics-test

1 similar comment
@AilinKid
Copy link
Contributor Author

AilinKid commented Dec 8, 2020

/run-tics-test

@AilinKid
Copy link
Contributor Author

AilinKid commented Dec 8, 2020

/run-unit-test

@AilinKid
Copy link
Contributor Author

AilinKid commented Dec 8, 2020

/run-all-tests

.
Signed-off-by: AilinKid <314806019@qq.com>
@AilinKid AilinKid force-pushed the add_var_for_multi_schema_change branch from 26aae4a to 4e87164 Compare December 8, 2020 07:07
@AilinKid
Copy link
Contributor Author

AilinKid commented Dec 9, 2020

/run-all-tests

@@ -560,6 +563,7 @@ const (
DefTiDBDDLErrorCountLimit = 512
DefTiDBMaxDeltaSchemaCount = 1024
DefTiDBChangeColumnType = false
DefTiDBMultiSchemaChange = false
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
DefTiDBMultiSchemaChange = false
DefTiDBChangeMultiSchema = false

sessionctx/variable/sysvar.go Outdated Show resolved Hide resolved
sessionctx/variable/session.go Outdated Show resolved Hide resolved
@AilinKid
Copy link
Contributor Author

AilinKid commented Dec 9, 2020

/run-tics-test tics-test=pr/1272

AilinKid and others added 4 commits December 9, 2020 10:57
Co-authored-by: tangenta <tangenta@126.com>
Co-authored-by: tangenta <tangenta@126.com>
Co-authored-by: tangenta <tangenta@126.com>
Copy link
Contributor

@tangenta tangenta 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 Dec 9, 2020
Copy link
Contributor

@xiongjiwei xiongjiwei left a comment

Choose a reason for hiding this comment

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

LGMT

Copy link
Contributor

@xiongjiwei xiongjiwei 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 removed the status/LGT1 Indicates that a PR has LGTM 1. label Dec 10, 2020
@ti-srebot ti-srebot added the status/LGT2 Indicates that a PR has LGTM 2. label Dec 10, 2020
@AilinKid
Copy link
Contributor Author

/merge

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

/run-all-tests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sig/sql-infra SIG: SQL Infra status/can-merge Indicates a PR has been approved by a committer. status/LGT2 Indicates that a PR has LGTM 2.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants