Skip to content
This repository has been archived by the owner on Nov 24, 2023. It is now read-only.

Commit

Permalink
task_checker: ignore more unrecoverable error (#1085)
Browse files Browse the repository at this point in the history
Co-authored-by: lance6716 <lance6716@gmail.com>
  • Loading branch information
ti-srebot and lance6716 authored Sep 23, 2020
1 parent ab00754 commit 2da53e6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/retry/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import (
"github.com/pingcap/dm/pkg/terror"
)

// some error reference: https://docs.pingcap.com/tidb/stable/tidb-limitations#limitations-on-a-single-table
var (
// UnsupportedDDLMsgs list the error messages of some unsupported DDL in TiDB
UnsupportedDDLMsgs = []string{
Expand All @@ -35,13 +36,17 @@ var (
"Unsupported collation",
"Invalid default value for",
"Unsupported drop primary key",
"Error 1059: Identifier name", // Limitations on identifier length
"Error 1117: Too many columns",
"Error 1069: Too many keys specified",
}

// UnsupportedDMLMsgs list the error messages of some un-recoverable DML, which is used in task auto recovery
UnsupportedDMLMsgs = []string{
"Error 1062: Duplicate entry",
"Error 1406: Data too long for column",
"Error 1366",
"Error 8025: entry too large",
}

// ParseRelayLogErrMsgs list the error messages of some un-recoverable relay log parsing error, which is used in task auto recovery.
Expand Down

0 comments on commit 2da53e6

Please sign in to comment.