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

add index blocked after injection pd leader io delay #55917

Closed
Lily2025 opened this issue Sep 6, 2024 · 2 comments · Fixed by #56184
Closed

add index blocked after injection pd leader io delay #55917

Lily2025 opened this issue Sep 6, 2024 · 2 comments · Fixed by #56184
Assignees
Labels
affects-8.1 component/ddl This issue is related to DDL of TiDB. severity/major type/bug The issue is confirmed as a bug. type/regression

Comments

@Lily2025
Copy link

Lily2025 commented Sep 6, 2024

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

1、tidb_enable_dist_task='off'
2、run sysbench
3、add index for one table
4、injection pd leader io delay

logs:
endless-ha-test-add-index-tps-7553489-1-251.zip

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

add index can success

3. What did you see instead (Required)

add index blocked after injection pd leader io delay

img_v3_02ef_94d2d15f-1519-4f64-9b90-07b74210aebg

the status of ddl job is not synced after 1h0m0s (now: 2024-09-06 12:33:26, jobId: 611, job type: add index /* ingest /, state: running)
operatorLogs:
[2024-09-06 11:33:15] ###### start adding index
ALTER TABLE sbtest1 ADD INDEX index_test_1725593595755(c)
[2024-09-06 11:33:15] ###### wait for ddl job finish
[2024-09-06 12:33:26] ###### wait for ddl job finish timeout(1h0m0s)
select job_id, db_name, table_name, job_type, create_time, start_time, end_time, state, query from information_schema.ddl_jobs where query = 'ALTER TABLE sbtest1 ADD INDEX index_test_1725593595755(c)'
jobId: 611, job type: add index /
ingest */, state: running

4. What is your TiDB version? (Required)

./tidb-server -V
Release Version: v8.4.0-alpha
Edition: Community
Git Commit Hash: 9c7f4eb
Git Branch: heads/refs/tags/v8.4.0-alpha
UTC Build Time: 2024-09-05 11:51:24
GoVersion: go1.21.10
Race Enabled: false
Check Table Before Drop: false
Store: unistore
2024-09-06T11:13:31.856+0800

@Lily2025 Lily2025 added the type/bug The issue is confirmed as a bug. label Sep 6, 2024
@Lily2025
Copy link
Author

Lily2025 commented Sep 6, 2024

/assign tangenta

@tangenta
Copy link
Contributor

Introduced by #54149

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects-8.1 component/ddl This issue is related to DDL of TiDB. severity/major type/bug The issue is confirmed as a bug. type/regression
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants