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

task_checker: ignore more unrecoverable error (#1077) #1085

Merged
merged 2 commits into from
Sep 23, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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