-
Notifications
You must be signed in to change notification settings - Fork 6.2k
Canceling adding index job may get stuck #61087
Copy link
Copy link
Closed
Labels
affects-7.5This bug affects the 7.5.x(LTS) versions.This bug affects the 7.5.x(LTS) versions.affects-8.1This bug affects the 8.1.x(LTS) versions.This bug affects the 8.1.x(LTS) versions.component/ddlThis issue is related to DDL of TiDB.This issue is related to DDL of TiDB.impact/leakreport/customerCustomers have encountered this bug.Customers have encountered this bug.severity/majortype/bugThe issue is confirmed as a bug.The issue is confirmed as a bug.
Metadata
Metadata
Assignees
Labels
affects-7.5This bug affects the 7.5.x(LTS) versions.This bug affects the 7.5.x(LTS) versions.affects-8.1This bug affects the 8.1.x(LTS) versions.This bug affects the 8.1.x(LTS) versions.component/ddlThis issue is related to DDL of TiDB.This issue is related to DDL of TiDB.impact/leakreport/customerCustomers have encountered this bug.Customers have encountered this bug.severity/majortype/bugThe issue is confirmed as a bug.The issue is confirmed as a bug.
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
One of the goroutines reading the table was blocked on fetching the chunk (which is used to store the index columns of the table), because cancel caused the context done, and the result was not sent to the downstream goroutine that writes the index, which further resulted in the resource leakage when it did not recycle the chunk correctly.
2. What did you expect to see? (Required)
It should not get stuck.
3. What did you see instead (Required)
Get stuck when canceling DDL job.
4. What is your TiDB version? (Required)
v7.5.6