-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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 injection ddl owner network partition during adding index #54897
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.
component/ddl
This issue is related to DDL of TiDB.
impact/inconsistency
incorrect/inconsistency/inconsistent
severity/critical
type/bug
The issue is confirmed as a bug.
Comments
/assign tangenta |
jebter
added
severity/critical
component/ddl
This issue is related to DDL of TiDB.
impact/inconsistency
incorrect/inconsistency/inconsistent
labels
Jul 26, 2024
ti-chi-bot
bot
added
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
labels
Jul 26, 2024
This was referenced Jul 30, 2024
tangenta
removed
may-affects-5.4
This bug maybe affects 5.4.x versions.
may-affects-6.1
may-affects-6.5
may-affects-7.1
labels
Jul 30, 2024
13 tasks
tangenta
added
affects-6.5
This bug affects the 6.5.x(LTS) versions.
affects-7.1
This bug affects the 7.1.x(LTS) versions.
labels
Jul 31, 2024
This was referenced Jul 31, 2024
hawkingrei
pushed a commit
to hawkingrei/tidb
that referenced
this issue
Aug 1, 2024
13 tasks
13 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
component/ddl
This issue is related to DDL of TiDB.
impact/inconsistency
incorrect/inconsistency/inconsistent
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)
1、tidb_enable_dist_task='on' and use local sort
2、run sysbench
3、add index for one of table
4、injection ddl owner network partition during adding index
5、admin check index when adding index finish
operatorLogs:
[2024-07-25 01:21:36] ###### start adding index
ALTER TABLE
sbtest1
ADD INDEXindex_test_1721841696410
(c
)[2024-07-25 01:21:36] ###### wait for ddl job finish
[2024-07-25 01:32:21] ###### ddl job finished
select job_id, job_type, state from information_schema.ddl_jobs where query = 'ALTER TABLE
sbtest1
ADD INDEXindex_test_1721841696410
(c
)'jobId: 592, job type: add index /* ingest */, state: synced
add index done, it takes: 10m44.902441801s
[2024-07-25 01:32:21] ###### start admin check
admin check index sbtest1 index_test_1721841696410
2. What did you expect to see? (Required)
add can success and data correct
3. What did you see instead (Required)
data inconsistency after injection ddl owner network partition during adding index
admin check failed (Error 8223 (HY000): data inconsistency in table: sbtest1, index: index_test_1721841696410, handle: 35156822, index-values:"handle: 35156822, values: [KindString 75526682157-01257366551-39747214380-53310925015-19751162425-74886418288-77605459295-59361560241-00641688684-13158278592]" != record-values:"handle: 35156822, values: [KindString 68508141783-95917702052-94553662448-15398694339-20156684966-89431718493-64538361712-25100449307-05824713827-68668904998]")
4. What is your TiDB version? (Required)
./tidb-server -V
Release Version: v7.5.3
Edition: Community
Git Commit Hash: 710538b
Git Branch: HEAD
UTC Build Time: 2024-07-24 11:33:21
GoVersion: go1.21.10
Race Enabled: false
Check Table Before Drop: false
Store: unistore
2024-07-25T01:21:27.798+0800
The text was updated successfully, but these errors were encountered: