Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Index entry delete assertion Key Exists fails during REORG PARTITION for non-clustered table. #58864

Open
mjonss opened this issue Jan 10, 2025 · 0 comments · May be fixed by #58902
Open

Index entry delete assertion Key Exists fails during REORG PARTITION for non-clustered table. #58864

mjonss opened this issue Jan 10, 2025 · 0 comments · May be fixed by #58902
Assignees
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.

Comments

@mjonss
Copy link
Contributor

mjonss commented Jan 10, 2025

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)

tidb_version(): Release Version: v9.0.0-alpha-83-g244062f826
Edition: Community
Git Commit Hash: 244062f826f75494525e3ac319d0e8ad794b0a43
Git Branch: HEAD
UTC Build Time: 2025-01-10 14:24:14
GoVersion: go1.23.4
Race Enabled: false
Check Table Before Drop: false
Store: unistore
@mjonss mjonss added the type/bug The issue is confirmed as a bug. label Jan 10, 2025
@jebter jebter added sig/sql-infra SIG: SQL Infra component/tablepartition This issue is related to Table Partition of TiDB. severity/major labels Jan 14, 2025
@mjonss mjonss self-assigned this Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants