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 may get blocked if tidb restarts/downs #46751

Closed
wjhuang2016 opened this issue Sep 7, 2023 · 0 comments · Fixed by #46752
Closed

DDL may get blocked if tidb restarts/downs #46751

wjhuang2016 opened this issue Sep 7, 2023 · 0 comments · Fixed by #46752
Labels
affects-6.5 affects-7.1 component/ddl This issue is related to DDL of TiDB. severity/major type/bug The issue is confirmed as a bug.

Comments

@wjhuang2016
Copy link
Member

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

Kill TiDB when the owner just cleans tidb_mdl_info while not cleaning the etcd info.

If so, that DDL is blocked.

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

DDL finish finally.

3. What did you see instead (Required)

DDL get blocked

4. What is your TiDB version? (Required)

6.5 7.1 master

@ti-chi-bot ti-chi-bot bot added 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.1 labels Sep 7, 2023
@wjhuang2016 wjhuang2016 removed 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.1 labels Sep 7, 2023
@wjhuang2016 wjhuang2016 changed the title DDL may get blocked if tidb is killed DDL may get blocked if tidb restarts/downs Sep 7, 2023
@jebter jebter added the component/ddl This issue is related to DDL of TiDB. label Sep 11, 2023
wjhuang2016 added a commit to wjhuang2016/tidb that referenced this issue Sep 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects-6.5 affects-7.1 component/ddl This issue is related to DDL of TiDB. severity/major type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants