add-index report "Failed to split region ranges: cannot find region in range"
Open
affects-8.1
component/ddl
may-affects-6.1
may-affects-6.5
may-affects-7.1
may-affects-7.5
may-affects-8.5
severity/major
type/bug
- Dominant language
- Go
- Stars
- 40.5k
- Forks
- 6.2k
- PR merge metrics
- PR metrics pending
Description
## Bug Report
Please answer these questions before submitting your issue. Thanks!
### 1. Minimal reproduce step (Required)
`Failed to split region ranges: cannot find region in range` means there are region hole which might be caused by some temporary reasons, such as the heartbeat message report by tikv is delayed, add-index should retry on this, not report error directly.
https://github.com/pingcap/tidb/blob/80db67052c0b1d89ab5ea94d6efa576a2191432d/pkg/ddl/backfilling.go#L448-L456
### 2. What did you expect to see? (Required)
retry
### 3. What did you see instead (Required)
fail directly
### 4. What is your TiDB version? (Required)
8.1
Contributor guide
Assessment
This issue has not been assessed yet.