on owner change, info schema might skip some diffs that it thinks it is a hole due to error #58486
Labels
component/ddl
This issue is related to DDL 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/moderate
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)
steps to reproduce:(to workaround #58483, we have comment out the code related to continue on
jobNeedToSync=false
)nightly
playground, after it bootstrapped, we kill tidbtidb-server-5000
(created with below diff), so A became ownertidb-server-4000
(created with below diff)create table aaa(id int)
J1 on A, when we seeset version, begin
, trigger owner change by delete the related election keybefore commit
, the allocated schema version isX
.create table bbb(id int)
J2 on B before we seeafter commit
X+1
, and at this timeX
hasn't commit it's diff, so all node takeX
as a hole and skip it.X
with diff on node A committed, and then A retire completelytidb/pkg/domain/domain.go
Line 320 in 14a469a
Table 'test.aaa' doesn't exist
, this breaks consistency after we fix all other issuessteps to create the binary for test
tidb-server-5000
2. What did you expect to see? (Required)
3. What did you see instead (Required)
4. What is your TiDB version? (Required)
master
The text was updated successfully, but these errors were encountered: