-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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, session: add tidb_enable_exchange_partition variable #22638
ddl, session: add tidb_enable_exchange_partition variable #22638
Conversation
label component/session |
label sig/DDL |
/label component/session, sig/DDL |
/cc @qw4990 |
@rebelice SIG-DDL is renamed to SIG-SQL-INFRA. So you do not need to label sig/ddl. It is sig/infra now. |
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
@@ -273,4 +273,6 @@ var ( | |||
|
|||
// ErrUnknownEngine is returned when the table engine is unknown. | |||
ErrUnknownEngine = dbterror.ClassDDL.NewStd(mysql.ErrUnknownStorageEngine) | |||
|
|||
errExchangePartitionDisabled = dbterror.ClassDDL.NewStdErr(mysql.ErrUnsupportedDDLOperation, parser_mysql.Message("Exchange Partition is disabled, please set 'tidb_enable_exchange_partition' if you need to need to enable it", nil)) |
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.
Is it indented to use errExchangePartitionDisabled
? Why not the exported Err
?
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.
Because it will only be used in the current package, just like errTablePartitionDisabled
, so I don’t think it needs to be exported.
/unlabel sig/ddl |
/label sig/infra |
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
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: ti-srebot <ti-srebot@pingcap.com>
cherry pick to release-5.0-rc in PR #22706 |
What problem does this PR solve?
Problem Summary:
What is changed and how it works?
Add tidb_enable_exchange_partition variable to enable or disable exchange partition.
Disabled by default.
Related changes
pingcap/docs
/pingcap/docs-cn
:Check List
Tests
Side effects
Release note