diff --git a/kv/txn.go b/kv/txn.go index e2bf6f704e..4e83a5b08a 100644 --- a/kv/txn.go +++ b/kv/txn.go @@ -25,7 +25,9 @@ func IsRetryableError(err error) bool { return false } - if terror.ErrorEqual(err, ErrRetryable) { + if terror.ErrorEqual(err, ErrRetryable) || + terror.ErrorEqual(err, ErrLockConflict) || + terror.ErrorEqual(err, ErrConditionNotMatch) { return true }