func IsErrNotFound(err error) bool {
	return errors.ErrorEqual(err, ErrNotExist)
}
IsErrNotFound checks if err is a kind of NotFound error.
package error
import (
	"fmt"
	"time"
	"github.com/pingcap/errors"
	"github.com/pingcap/kvproto/pkg/kvrpcpb"
	"github.com/pingcap/kvproto/pkg/pdpb"
	"github.com/pingcap/log"
	"github.com/tikv/client-go/v2/internal/logutil"
	"github.com/tikv/client-go/v2/util"
	"go.uber.org/zap"
)
var (
	ErrBodyMissing = errors.New("response body is missing")
	ErrTiDBShuttingDown = errors.New("tidb server shutting down")
	ErrNotExist = errors.New("not exist")
	ErrCannotSetNilValue = errors.New("can not set nil value")
	ErrInvalidTxn = errors.New("invalid transaction")
	ErrTiKVServerTimeout = errors.New("tikv server timeout")
	ErrTiFlashServerTimeout = errors.New("tiflash server timeout")
	ErrQueryInterrupted = errors.New("query interruppted")
	ErrTiKVStaleCommand = errors.New("tikv stale command")
	ErrTiKVMaxTimestampNotSynced = errors.New("tikv max timestamp not synced")
	ErrLockAcquireFailAndNoWaitSet = errors.New("lock acquired failed and no wait is setted")
	ErrResolveLockTimeout = errors.New("resolve lock timeout")
	ErrLockWaitTimeout = errors.New("lock wait timeout")
	ErrTiKVServerBusy = errors.New("tikv server busy")
	ErrTiFlashServerBusy = errors.New("tiflash server busy")
	ErrRegionUnavailable = errors.New("region unavailable")
	ErrRegionDataNotReady = errors.New("region data not ready")
	ErrRegionNotInitialized = errors.New("region not Initialized")
	ErrTiKVDiskFull = errors.New("tikv disk full")
	ErrUnknown = errors.New("unknow")
	ErrResultUndetermined = errors.New("execution result undetermined")
)
const MismatchClusterID = "mismatch cluster id"