merge-sort step cannot be cancelled if some routine failed and might oom #48367
Labels
affects-7.5
component/ddl
This issue is related to DDL of TiDB.
severity/major
type/bug
The issue is confirmed as a bug.
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
merge-sort step cannot be cancelled if some routine failed, we need use
WithContext
to create err-grouptidb/br/pkg/lightning/backend/external/merge.go
Line 38 in 9d07f83
currently we calculate writer mem-limit using half of machine memory, we need limit it by concurrency
tidb/br/pkg/lightning/backend/external/merge.go
Lines 32 to 36 in 9d07f83
2. What did you expect to see? (Required)
3. What did you see instead (Required)
4. What is your TiDB version? (Required)
The text was updated successfully, but these errors were encountered: