Index entry delete assertion Key Exists fails during REORG PARTITION for non-clustered table. #58864
Labels
component/tablepartition
This issue is related to Table Partition of TiDB.
may-affects-5.4
This bug maybe affects 5.4.x versions.
may-affects-6.1
may-affects-6.5
may-affects-7.1
may-affects-7.5
may-affects-8.1
may-affects-8.5
severity/major
sig/sql-infra
SIG: SQL Infra
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)
Apply this diff (reorg-part-index-assert-issue.diff.txt) and run the new test TestRemovePartitioningCovering and see that there are failed assertions.
2. What did you expect to see? (Required)
No assertions
3. What did you see instead (Required)
assertions on update and delete, where the old partition is no longer written by StatePublic, resulting in StateDeleteOnly (previous state, which should still be allowed to do DML) will try to delete index entries, that does not exist, so the Assert that they do exists fails.
4. What is your TiDB version? (Required)
The text was updated successfully, but these errors were encountered: