ddl: fast reorg of index may cause duplicate entry error
- 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)



### 2. What did you expect to see? (Required)
Look, we did add a unique index with ddl job id as 1131, while at 02.19 ddl owner has changed, and resume the checkpoint at same time, consequently leading duplicate entry error at 02.21
### 3. What did you see instead (Required)
no duplicate error (since user has checked with their data)
### 4. What is your TiDB version? (Required)
master, 7.1.1
Contributor guide
Assessment
This issue has not been assessed yet.