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, session: add tidb_enable_exchange_partition variable #22638

Merged
merged 7 commits into from
Feb 3, 2021

Conversation

rebelice
Copy link
Contributor

@rebelice rebelice commented Feb 1, 2021

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

  • PR to update pingcap/docs/pingcap/docs-cn:
  • Need to cherry-pick to the release branch

Check List

Tests

  • Unit test

Side effects

Release note

  • add tidb_enable_exchange_partition variable

@github-actions github-actions bot added the sig/sql-infra SIG: SQL Infra label Feb 1, 2021
@rebelice
Copy link
Contributor Author

rebelice commented Feb 1, 2021

label component/session

@rebelice
Copy link
Contributor Author

rebelice commented Feb 1, 2021

label sig/DDL

@rebelice
Copy link
Contributor Author

rebelice commented Feb 1, 2021

/label component/session, sig/DDL

@rebelice
Copy link
Contributor Author

rebelice commented Feb 1, 2021

/cc @qw4990

@ti-srebot ti-srebot requested a review from qw4990 February 1, 2021 07:06
@xhebox
Copy link
Contributor

xhebox commented Feb 2, 2021

@rebelice SIG-DDL is renamed to SIG-SQL-INFRA. So you do not need to label sig/ddl. It is sig/infra now.

Copy link
Contributor

@xhebox xhebox left a 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))
Copy link
Contributor

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?

Copy link
Contributor Author

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.

@rebelice
Copy link
Contributor Author

rebelice commented Feb 2, 2021

/unlabel sig/ddl

@ti-srebot ti-srebot removed the sig/DDL label Feb 2, 2021
@rebelice
Copy link
Contributor Author

rebelice commented Feb 2, 2021

/label sig/infra

Copy link
Contributor

@qw4990 qw4990 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
Copy link
Contributor

@qw4990, Thanks for your review. The bot only counts LGTMs from Reviewers and higher roles, but you're still welcome to leave your comments. See the corresponding SIG page for more information. Related SIG: sql-infra(slack).

Copy link
Contributor

@xhebox xhebox 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 Feb 3, 2021
@qw4990 qw4990 added the sig/execution SIG execution label Feb 3, 2021
Copy link
Contributor

@qw4990 qw4990 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 Feb 3, 2021
@ti-srebot ti-srebot added the status/LGT2 Indicates that a PR has LGTM 2. label Feb 3, 2021
@qw4990
Copy link
Contributor

qw4990 commented Feb 3, 2021

/merge

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

/run-all-tests

@ti-srebot ti-srebot merged commit 9e3c064 into pingcap:master Feb 3, 2021
ti-srebot pushed a commit to ti-srebot/tidb that referenced this pull request Feb 3, 2021
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
@ti-srebot
Copy link
Contributor

cherry pick to release-5.0-rc in PR #22706

ti-srebot added a commit that referenced this pull request Feb 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/session sig/execution SIG execution 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