pingcap / pingcap/tidb

ddl: fast reorg of index may cause duplicate entry error

Open
#49,233 4 comments 0 reactions 1 assignee Claimed by @tangenta View on GitHub
affects-7.1 affects-7.5 affects-8.1 affects-8.5 component/ddl 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)

![image](https://github.com/pingcap/tidb/assets/15825830/639c0052-5cd6-497c-98ee-bc3497fb7596)
![image](https://github.com/pingcap/tidb/assets/15825830/5ba8c584-dfd8-425d-90e4-1fcdc0242ff9)
![image](https://github.com/pingcap/tidb/assets/15825830/8129c801-5077-471b-9470-0b93a7ae17af)

### 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

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.