import into: some subtask keeps running when task cancelled #45048
Labels
affects-7.2
component/lightning
This issue is related to Lightning of TiDB.
feature/developing
the related feature is in development
severity/major
type/bug
This issue is a bug.
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
since we're using a background ctx when checking disk quota, it will block other chunk sorting routines so cleanUpEnv will not be called. see stack.log
tidb/disttask/importinto/scheduler.go
Lines 81 to 85 in 8658a98
2. What did you expect to see? (Required)
subtask cancelled fast
3. What did you see instead (Required)
subtask keeps running for more than 1 hour.
4. What is your TiDB version? (Required)
The text was updated successfully, but these errors were encountered: