-
Notifications
You must be signed in to change notification settings - Fork 6k
Closed
Labels
severity/moderatesig/transactionSIG:TransactionSIG:Transactiontype/bugThe issue is confirmed as a bug.The issue is confirmed as a bug.
Description
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
I see there is delayForAsyncCommit before verifying records, for example:
Lines 2496 to 2498 in 4f00ece
if d.lease > 0 { | |
delayForAsyncCommit() | |
} |
But there is no delay used by foreign_key and constraints check.
Line 672 in 4f00ece
func checkForeignKeyConstrain(w *worker, schema, table string, fkInfo *model.FKInfo, fkCheck bool) error { |
Line 339 in 4f00ece
func (w *worker) verifyRemainRecordsForCheckConstraint(dbInfo *model.DBInfo, tableInfo *model.TableInfo, constr *model.ConstraintInfo, job *model.Job) error { |
Is it a potential bug under async commit?
I don't known how to reproduce it to verify this question.
2. What did you expect to see? (Required)
3. What did you see instead (Required)
4. What is your TiDB version? (Required)
master
lance6716
Metadata
Metadata
Assignees
Labels
severity/moderatesig/transactionSIG:TransactionSIG:Transactiontype/bugThe issue is confirmed as a bug.The issue is confirmed as a bug.