Data inconsistent after adding unique index #60339
Labels
affects-6.5
This bug affects the 6.5.x(LTS) versions.
affects-7.1
This bug affects the 7.1.x(LTS) versions.
affects-7.5
This bug affects the 7.5.x(LTS) versions.
affects-8.1
This bug affects the 8.1.x(LTS) versions.
affects-8.5
This bug affects the 8.5.x(LTS) versions.
affects-9.0
This bug affects the 9.0.x versions.
component/ddl
This issue is related to DDL of TiDB.
fuzz/schrddl
severity/critical
type/bug
The issue is confirmed as a bug.
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
Put this test to realtikvtest:
2. What did you expect to see? (Required)
Index=write-reorg, scan rows
Index = []
Tmp index = []
Index = []
Tmp index = [a -> h2]
Index = []
Tmp index = [a -> h2,h1d]
Index = []
Tmp index = [a -> h2,h1d,h3]
Index = []
Tmp index = [a -> h2,h1d,h3,h2d]
Insert(h4 -> a)
Delete(h3 -> a)
Index = []
Tmp index = [a -> h2,h1d,h3,h2d,h4,h3d]
Index = []
Tmp index = [a -> h2,h1d,h3,h2d,h4,h3d]
Insert(h3 -> a)
Index = [a -> h3]
Tmp index = [a -> h2,h1d,h3,h2d,h4,h3d,h3]
Index = [a -> h3]
Tmp index = [a -> h3]
Index = [a -> h3] [a -> h4] REPORT ERROR
Tmp index = []
Index = [a -> h3]
Tmp index = []
3. What did you see instead (Required)
It means the temp index value is overwritten unexpectedly.
4. What is your TiDB version? (Required)
d916614
The text was updated successfully, but these errors were encountered: