client-go: cancellation race can block TiDB batch receive loop indefinitely
Open
affects-8.5
component/tikv-client
severity/major
sig/transaction
type/bug
- Dominant language
- Go
- Stars
- 40.5k
- Forks
- 6.2k
- PR merge metrics
- PR metrics pending
Description
## Bug Report
### 1. Minimal reproduce step (Required)
See [tikv/client-go#2033](https://github.com/tikv/client-go/issues/2033). TiDB `master` currently depends on the affected client-go revision `61ecd7c11416`.
### 2. What did you expect to see? (Required)
Cancellation must not stop the shared batch receive loop.
### 3. What did you see instead (Required)
The cancellation race can block the receive loop indefinitely, causing TiDB requests sharing that stream to hang or time out.
### 4. What is your TiDB version? (Required)
Current `master` (client-go `v2.0.8-0.20260724023932-61ecd7c11416`).
Contributor guide
Assessment
This issue has not been assessed yet.