Skip to content

Commit

Permalink
add some retryable error (pingcap#256)
Browse files Browse the repository at this point in the history
  • Loading branch information
WangXiangUSTC authored Aug 29, 2019
1 parent 56ec294 commit c3a6235
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/retry/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func IsRetryableError(err error) bool {
if ok {
switch mysqlErr.Number {
// ER_LOCK_DEADLOCK can retry to commit while meet deadlock
case tmysql.ErrUnknown, gmysql.ER_LOCK_DEADLOCK, tmysql.ErrPDServerTimeout, tmysql.ErrTiKVServerTimeout, tmysql.ErrTiKVServerBusy, tmysql.ErrResolveLockTimeout, tmysql.ErrRegionUnavailable:
case tmysql.ErrUnknown, gmysql.ER_LOCK_DEADLOCK, tmysql.ErrPDServerTimeout, tmysql.ErrTiKVServerTimeout, tmysql.ErrTiKVServerBusy, tmysql.ErrResolveLockTimeout, tmysql.ErrRegionUnavailable, tmysql.ErrQueryInterrupted, tmysql.ErrWriteConflictInTiDB, tmysql.ErrTableLocked, tmysql.ErrWriteConflict:
return true
default:
return false
Expand Down

0 comments on commit c3a6235

Please sign in to comment.