Documentation ¶
Index ¶
- func ConvertErr(tp frameModel.WorkerType, err error) error
- func IsAccessDeniedError(err error) bool
- func IsIgnorableMySQLDDLError(err error) bool
- func IsRetryableDDLError(err error) bool
- func IsRetryableDMLError(err error) bool
- func IsRetryableEtcdError(err error) bool
- func IsSyncPointIgnoreError(err error) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertErr ¶
func ConvertErr(tp frameModel.WorkerType, err error) error
ConvertErr converts an error to a specific error by worker type.
func IsAccessDeniedError ¶
IsAccessDeniedError checks if the error is an access denied error.
func IsIgnorableMySQLDDLError ¶
IsIgnorableMySQLDDLError is used to check what error can be ignored we can get error code from: infoschema's error definition: https://github.com/pingcap/tidb/blob/master/infoschema/infoschema.go DDL's error definition: https://github.com/pingcap/tidb/blob/master/ddl/ddl.go tidb/mysql error code definition: https://github.com/pingcap/tidb/blob/master/mysql/errcode.go
func IsRetryableDDLError ¶
IsRetryableDDLError check if the error is a retryable ddl error.
func IsRetryableDMLError ¶
IsRetryableDMLError check if the error is a retryable dml error.
func IsRetryableEtcdError ¶
IsRetryableEtcdError is used to check what error can be retried.
func IsSyncPointIgnoreError ¶
IsSyncPointIgnoreError returns whether the error is ignorable for syncpoint.
Types ¶
This section is empty.