pingcap / pingcap/tidb

client-go: cancellation race can block TiDB batch receive loop indefinitely

Open
#70,160 0 comments 0 reactions 1 assignee Claimed by @zyguan View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.