errorutil

package
v0.0.0-...-be15534 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 11 Imported by: 2

Documentation

Index

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

func IsAccessDeniedError(err error) bool

IsAccessDeniedError checks if the error is an access denied error.

func IsIgnorableMySQLDDLError

func IsIgnorableMySQLDDLError(err error) bool

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

func IsRetryableDDLError(err error) bool

IsRetryableDDLError check if the error is a retryable ddl error.

func IsRetryableDMLError

func IsRetryableDMLError(err error) bool

IsRetryableDMLError check if the error is a retryable dml error.

func IsRetryableEtcdError

func IsRetryableEtcdError(err error) bool

IsRetryableEtcdError is used to check what error can be retried.

func IsSyncPointIgnoreError

func IsSyncPointIgnoreError(err error) bool

IsSyncPointIgnoreError returns whether the error is ignorable for syncpoint.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL