-
Notifications
You must be signed in to change notification settings - Fork 6.2k
Don't print error log for indexLookUpExecutor when context canceled #61072
Copy link
Copy link
Closed
Labels
affects-7.1This bug affects the 7.1.x(LTS) versions.This bug affects the 7.1.x(LTS) versions.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.affects-8.5This bug affects the 8.5.x(LTS) versions.This bug affects the 8.5.x(LTS) versions.report/customerCustomers have encountered this bug.Customers have encountered this bug.sig/executionSIG executionSIG executiontype/enhancementThe issue or PR belongs to an enhancement.The issue or PR belongs to an enhancement.
Metadata
Metadata
Assignees
Labels
affects-7.1This bug affects the 7.1.x(LTS) versions.This bug affects the 7.1.x(LTS) versions.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.affects-8.5This bug affects the 8.5.x(LTS) versions.This bug affects the 8.5.x(LTS) versions.report/customerCustomers have encountered this bug.Customers have encountered this bug.sig/executionSIG executionSIG executiontype/enhancementThe issue or PR belongs to an enhancement.The issue or PR belongs to an enhancement.
Enhancement
When indexLookUpExecutor is closed before its index/table worker finished(it may be caused by limit operator), it will use cancelFunc to inform index/tableWork. Currently, this will lead to useless error logs: "[2025/05/12 10:25:18.142 +08:00] [ERROR] [distsql.go:1572] ["table reader fetch next chunk failed"] [conn=2120221196] [session_alias=] [error="context canceled"]"
tidb/pkg/executor/select.go
Lines 429 to 431 in 2503d50
tidb/pkg/executor/distsql.go
Lines 898 to 901 in 2503d50
tidb/pkg/store/copr/coprocessor.go
Lines 1130 to 1134 in 2503d50
tidb/pkg/executor/distsql.go
Lines 1564 to 1567 in 2503d50