-
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 a switch for multi schema change & make it compatible with old test cases #21533
ddl: add a switch for multi schema change & make it compatible with old test cases #21533
Conversation
…st cases Signed-off-by: AilinKid <314806019@qq.com>
/run-all-tests |
/run-tics-test |
1 similar comment
/run-tics-test |
/run-unit-test |
/run-all-tests |
26aae4a
to
4e87164
Compare
/run-all-tests |
sessionctx/variable/tidb_vars.go
Outdated
@@ -560,6 +563,7 @@ const ( | |||
DefTiDBDDLErrorCountLimit = 512 | |||
DefTiDBMaxDeltaSchemaCount = 1024 | |||
DefTiDBChangeColumnType = false | |||
DefTiDBMultiSchemaChange = false |
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.
DefTiDBMultiSchemaChange = false | |
DefTiDBChangeMultiSchema = false |
/run-tics-test tics-test=pr/1272 |
Co-authored-by: tangenta <tangenta@126.com>
Co-authored-by: tangenta <tangenta@126.com>
Co-authored-by: tangenta <tangenta@126.com>
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.
LGMT
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
/merge |
/run-all-tests |
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
pingcap/docs
/pingcap/docs-cn
:Check List
Tests
Release note