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

Create index is blocked when no /tmp/tidb/tmp_ddl-4000 #45624

Open
wengsy150943 opened this issue Jul 27, 2023 · 2 comments
Open

Create index is blocked when no /tmp/tidb/tmp_ddl-4000 #45624

wengsy150943 opened this issue Jul 27, 2023 · 2 comments
Labels
affects-7.5 This bug affects the 7.5.x(LTS) versions. affects-8.1 This bug affects the 8.1.x(LTS) versions. affects-8.5 This bug affects the 8.5.x(LTS) versions. component/ddl This issue is related to DDL of TiDB. may-affects-6.5 may-affects-7.1 severity/major

Comments

@wengsy150943
Copy link

wengsy150943 commented Jul 27, 2023

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

create a index.

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

successfully create.

3. What did you see instead (Required)

The ddl is blocked.

When kill this ddl, return error mes cannot get disk capacity at /tmp/tidb/tmp_ddl-4000: no such file or directory.
And there is no tidb under /tmp.

Index can be created after making dir /tmp/tidb/tmp_ddl-4000 manually .

Since my tidb turns on multi raft, no sure if this bug is related to having multi-raft turned on.

4. What is your TiDB version? (Required)

+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| tidb_version()                                                                                                                                                                                                                                                                               |
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Release Version: v7.1.0
Edition: Community
Git Commit Hash: 635a4362235e8a3c0043542e629532e3c7bb2756
Git Branch: heads/refs/tags/v7.1.0
UTC Build Time: 2023-05-30 10:58:57
GoVersion: go1.20.3
Race Enabled: false
TiKV Min Version: 6.2.0-alpha
Check Table Before Drop: false
Store: tikv |
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
@wengsy150943 wengsy150943 added the type/bug The issue is confirmed as a bug. label Jul 27, 2023
@ti-chi-bot ti-chi-bot bot added 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.1 may-affects-6.5 may-affects-7.1 labels Jul 28, 2023
@wengsy150943
Copy link
Author

Another case not sure if it's a bug:

With /tmp/tidb/tmp_ddl-4000 created, create index may also be blocked.
Kill ddl and then display err msg:

ERROR 1105 (HY000): DDL job rollback, error msg: sort path: /tmp/tidb/tmp_ddl-4000, disk usage: 227149611008/422621650944, backend usage: 0, please clean up the disk and retry

tiup clean --data is useful in this case, but there exists free disk space before cleaning.

@hunao0221
Copy link

My case is:

[2023-09-05 10:21:44] [HY000][8256] Check ingest environment failed: sort path: /tmp/tidb/tmp_ddl-4000, disk usage: 220939460608/245107195904, backend usage: 0, please clean up the disk and retry

@bb7133 bb7133 added component/ddl This issue is related to DDL of TiDB. and removed sig/sql-infra SIG: SQL Infra labels Oct 9, 2023
@ti-chi-bot ti-chi-bot added the affects-7.5 This bug affects the 7.5.x(LTS) versions. label Oct 23, 2023
@ti-chi-bot ti-chi-bot added the affects-8.1 This bug affects the 8.1.x(LTS) versions. label Apr 9, 2024
@Benjamin2037 Benjamin2037 removed type/bug The issue is confirmed as a bug. 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.1 labels Apr 28, 2024
@ti-chi-bot ti-chi-bot added the affects-8.5 This bug affects the 8.5.x(LTS) versions. label Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects-7.5 This bug affects the 7.5.x(LTS) versions. affects-8.1 This bug affects the 8.1.x(LTS) versions. affects-8.5 This bug affects the 8.5.x(LTS) versions. component/ddl This issue is related to DDL of TiDB. may-affects-6.5 may-affects-7.1 severity/major
Projects
None yet
Development

No branches or pull requests

6 participants