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 blocked when the tidb_enable_concurrent_ddl is set to off #39131

Closed
ChenPeng2013 opened this issue Nov 14, 2022 · 4 comments · Fixed by #39301
Closed

ddl blocked when the tidb_enable_concurrent_ddl is set to off #39131

ChenPeng2013 opened this issue Nov 14, 2022 · 4 comments · Fixed by #39301
Assignees
Labels
severity/major sig/sql-infra SIG: SQL Infra type/bug The issue is confirmed as a bug.

Comments

@ChenPeng2013
Copy link
Contributor

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

set global tidb_enable_concurrent_ddl=off;
create database if not exists test2;

2. What did you expect to see? (Required)

3. What did you see instead (Required)

MySQL [test]> show processlist;
+---------------+------+------------------+------+---------+------+------------+-------------------------------------+
| Id            | User | Host             | db   | Command | Time | State      | Info                                |
+---------------+------+------------------+------+---------+------+------------+-------------------------------------+
| 2199023255955 | root | 172.17.0.1:38336 | test | Query   |  228 | autocommit | create database if not exists test2 |
| 2199023255957 | root | 172.17.0.1:38534 | test | Query   |    0 | autocommit | show processlist                    |
+---------------+------+------------------+------+---------+------+------------+-------------------------------------+
2 rows in set (0.01 sec)

4. What is your TiDB version? (Required)

Release Version: v6.5.0-alpha-55-gb0c338139
Edition: Community
Git Commit Hash: b0c338139c344df751e6738dea9d6fb983e108a0
Git Branch: master
UTC Build Time: 2022-11-14 07:08:30
GoVersion: go1.19.1
Race Enabled: false
TiKV Min Version: 6.2.0-alpha
Check Table Before Drop: false
Store: unistore
@ChenPeng2013 ChenPeng2013 added type/bug The issue is confirmed as a bug. sig/sql-infra SIG: SQL Infra labels Nov 14, 2022
@ti-chi-bot ti-chi-bot added may-affects-4.0 This bug maybe affects 4.0.x versions. may-affects-5.0 This bug maybe affects 5.0.x versions. may-affects-5.1 This bug maybe affects 5.1.x versions. may-affects-5.2 This bug maybe affects 5.2.x versions. may-affects-5.3 This bug maybe affects 5.3.x versions. may-affects-5.4 This bug maybe affects 5.4.x versions. may-affects-6.0 may-affects-6.1 may-affects-6.2 may-affects-6.3 labels Nov 14, 2022
@seiya-annie seiya-annie removed may-affects-4.0 This bug maybe affects 4.0.x versions. may-affects-5.1 This bug maybe affects 5.1.x versions. may-affects-5.2 This bug maybe affects 5.2.x versions. may-affects-5.3 This bug maybe affects 5.3.x versions. may-affects-5.4 This bug maybe affects 5.4.x versions. may-affects-5.0 This bug maybe affects 5.0.x versions. may-affects-6.0 may-affects-6.1 may-affects-6.2 may-affects-6.3 labels Nov 14, 2022
@wjhuang2016
Copy link
Member

It's the expected behavior, we should return an error if users want to disable concurrent DDL while MDL is enabled.

@Defined2014
Copy link
Contributor

Maybe we could remove original ddl framework to reduce development complexity. @wjhuang2016

@wjhuang2016
Copy link
Member

We need to keep it for a while(at least for the next LTS version)

@Defined2014
Copy link
Contributor

We need to keep it for a while(at least for the next LTS version)

Maybe we could do it next year :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
severity/major sig/sql-infra SIG: SQL Infra type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants