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

admin check failed with “Error 8223 (HY000): data inconsistency in table” after tidb rolling restart during adding index #53910

Closed
Lily2025 opened this issue Jun 11, 2024 · 3 comments · Fixed by #54149
Assignees
Labels
affects-8.2 component/ddl This issue is related to DDL of TiDB. severity/critical type/bug The issue is confirmed as a bug.

Comments

@Lily2025
Copy link

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

1、tidb_enable_dist_task='on'
2、run sysbench
3、add index for one of table
4、tidb rolling restart
5、admin check index when adding index finish

2. What did you expect to see? (Required)

admin check success

3. What did you see instead (Required)

admin check failed with “Error 8223 (HY000): data inconsistency in table” after tidb rolling restart during adding index

operator logs:

admin check failed (Error 8223 (HY000): data inconsistency in table: sbtest5, index: index_test_1718052600990, handle: 35905355, index-values:"" != record-values:"handle: 35905355, values: [KindString 38761834057-51189930219-13436187456-78745883518-32558835324-50564221187-36700127441-77553179797-78566774399-28838186753]")
operatorLogs:
[2024-06-11 04:50:00] ###### start adding index
ALTER TABLE sbtest5 ADD INDEX index_test_1718052600990(c)
[2024-06-11 04:50:00] ###### wait for ddl job finish
[2024-06-11 04:52:31] ###### ddl job finished
select job_id, job_type, state from information_schema.ddl_jobs where query = 'ALTER TABLE sbtest5 ADD INDEX index_test_1718052600990(c)'
jobId: 597, job type: add index /* ingest */, state: synced
add index done, it takes: 2m30.304123625s
[2024-06-11 04:52:31] ###### start admin check
admin check index sbtest5 index_test_1718052600990

4. What is your TiDB version? (Required)

./tidb-server -V
Release Version: v8.2.0-alpha
Edition: Community
Git Commit Hash: 5c0d737
Git Branch: heads/refs/tags/v8.2.0-alpha
UTC Build Time: 2024-06-09 11:44:25
GoVersion: go1.21.10
Race Enabled: false
Check Table Before Drop: false
Store: unistore
2024-06-11T05:26:05.590+0800

@Lily2025 Lily2025 added the type/bug The issue is confirmed as a bug. label Jun 11, 2024
@Lily2025
Copy link
Author

/component ddl
/severity critical
/assign tangenta

@tangenta
Copy link
Contributor

Closed by #54149

@tangenta
Copy link
Contributor

tangenta commented Aug 5, 2024

Introduced by #53747, it does not affect 8.1

@tangenta tangenta removed the affects-8.1 This bug affects the 8.1.x(LTS) versions. label Aug 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects-8.2 component/ddl This issue is related to DDL of TiDB. severity/critical type/bug The issue is confirmed as a bug.
Projects
None yet
3 participants