package
2.0.0-20230315033327-439aceb4cc96
Repository: https://github.com/ergesun/client-go.git
Documentation: pkg.go.dev

# Functions

ExtractKeyErr extracts a KeyError.
IsErrKeyExist returns true if it is ErrKeyExist.
IsErrNotFound checks if err is a kind of NotFound error.
IsErrorUndetermined checks if the error is undetermined error.
IsErrWriteConflict returns true if it is ErrWriteConflict.
Log logs the error if it is not nil.
NewErrPDServerTimeout creates an ErrPDServerTimeout.
NewErrWriteConflictWithArgs generates an ErrWriteConflict with args.

# Constants

MismatchClusterID represents the message that the cluster ID of the PD client does not match the PD.

# Variables

ErrBodyMissing response body is missing error.
ErrCannotSetNilValue is the error when sets an empty value.
ErrInvalidTxn is the error when commits or rollbacks in an invalid transaction.
ErrIsWitness is the error when a request is send to a witness.
ErrLockAcquireFailAndNoWaitSet is the error that acquire the lock failed while no wait is setted.
ErrLockWaitTimeout is the error that wait for the lock is timeout.
ErrNotExist means the related data not exist.
ErrQueryInterrupted is the error when the query is interrupted.
ErrRegionDataNotReady is the error when region's data is not ready when querying it with safe_ts.
ErrRegionFlashbackInProgress is the error when a region in the flashback progress receive any other request.
ErrRegionFlashbackNotPrepared is the error when a region is not prepared for the flashback first.
ErrRegionNotInitialized is error when region is not initialized.
ErrRegionRecoveryInProgress is the error when region is recovering.
ErrRegionUnavailable is the error when region is not available.
ErrResolveLockTimeout is the error that resolve lock timeout.
ErrResultUndetermined is the error when execution result is unknown.
ErrTiDBShuttingDown is returned when TiDB is closing and send request to tikv fail, do not retry.
ErrTiFlashServerBusy is the error that tiflash server is busy.
ErrTiFlashServerTimeout is the error when tiflash server is timeout.
ErrTiKVDiskFull is the error when tikv server disk usage is full.
ErrTiKVMaxTimestampNotSynced is the error that tikv's max timestamp is not synced.
ErrTiKVServerBusy is the error when tikv server is busy.
ErrTiKVServerTimeout is the error when tikv server is timeout.
ErrTiKVStaleCommand is the error that the command is stale in tikv.
ErrUnknown is the unknow error.

# Structs

ErrAssertionFailed is the error that assertion on data failed.
ErrDeadlock wraps *kvrpcpb.Deadlock to implement the error interface.
ErrEntryTooLarge is the error when a key value entry is too large.
ErrGCTooEarly is the error that GC life time is shorter than transaction duration.
ErrKeyExist wraps *pdpb.AlreadyExist to implement the error interface.
ErrLockOnlyIfExistsNoPrimaryKey is used when the flag `LockOnlyIfExists` of `LockCtx` is set, but primary key of current transaction is not.
ErrLockOnlyIfExistsNoReturnValue is used when the flag `LockOnlyIfExists` of `LockCtx` is set, but `ReturnValues`` is not.
ErrPDServerTimeout is the error when pd server is timeout.
ErrRetryable wraps *kvrpcpb.Retryable to implement the error interface.
ErrTokenLimit is the error that token is up to the limit.
ErrTxnTooLarge is the error when transaction is too large, lock time reached the maximum value.
ErrWriteConflict wraps *kvrpcpb.ErrWriteConflict to implement the error interface.
ErrWriteConflictInLatch is the error when the commit meets an write conflict error when local latch is enabled.
PDError wraps *pdpb.Error to implement the error interface.