errno

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HttpBadRequest            = 6400
	HttpUnauthorized          = 6401
	HttpDatabaseNotFound      = 6404
	HttpForbidden             = 6403
	HttpRequestEntityTooLarge = 6413
	HttpCpuOverLoad           = 6414
)

http

View Source
const (
	InternalError      = 9001
	InvalidDataType    = 9002
	RecoverPanic       = 9003
	UnknownMessageType = 9004
	InvalidBufferSize  = 9005
	ShortBufferSize    = 9006

	// BuiltInError errors returned by built-in functions
	BuiltInError = 9007

	// ThirdPartyError errors returned by third-party packages
	ThirdPartyError = 9008

	ShortWrite         = 9009
	ShortRead          = 9010
	InvalidMeasurement = 9011
)

common error codes

View Source
const (
	NoConnectionAvailable = 1001
	NoNodeAvailable       = 1002
	NodeConflict          = 1003
	SelectClosedConn      = 1004
	UnsupportedFlags      = 1005
	InvalidHeaderSize     = 1006
	InvalidHeader         = 1007
	DuplicateSession      = 1008
	InvalidDataSize       = 1009
	TooManySessions       = 1010
	ConnectionClosed      = 1011
	SessionSelectTimeout  = 1012
	DuplicateEvent        = 1013
	InvalidPublicKey      = 1014
	ShortPublicKey        = 1015
	UnsupportedSignAlgo   = 1016
	CertificateExpired    = 1017
	PoolClosed            = 1018
	DuplicateConnection   = 1019
	NoReactorHandler      = 1020
	ResponserClosed       = 1021
	InvalidAddress        = 1022
	BadListen             = 1023
	FailedConvertToCodec  = 1024
	OpenSessionTimeout    = 1025
	RemoteError           = 1206
	DataACKTimeout        = 1027
	InvalidTLSConfig      = 1208
)

network module error codes

View Source
const (
	PipelineExecuting            = 1101
	LogicPlanNotInit             = 1102
	NotSupportUnmarshal          = 1103
	ProcessorNotFound            = 1104
	MissInputProcessor           = 1105
	MissOutputProcessor          = 1106
	MissInputTransform           = 1107
	CyclicVertex                 = 1108
	CyclicGraph                  = 1109
	UnsupportedLogicalPlan       = 1110
	UnsupportedDataType          = 1111
	LogicalPlanBuildFail         = 1112
	BucketLacks                  = 1113
	CreatePipelineExecutorFail   = 1114
	LogicalPlainBuildFailInShard = 1115
	SchemaNotAligned             = 1116
	NoFieldSelected              = 1117
	NoDimSelected                = 1118
	NoColValToColumnFunc         = 1119
	InvalidQuerySchema           = 1120
	InvalidQueryStat             = 1121
	ErrQueryNotFound             = 1122
	ErrQueryKilled               = 1123
	OBSClientRead                = 1124
	ShardBucketLacks             = 1125
	SeriesBucketLacks            = 1126
)

query engine error codes

View Source
const (
	ReverseValueIllegal     = 1501
	TimeoutMsValueIllegal   = 1502
	TimeoutMsRangeIllegal   = 1503
	FromValueIllegal        = 1504
	ToValueIllegal          = 1505
	FromValueLargerThanTo   = 1506
	FromValueLowerThanMin   = 1507
	ToValueLargerThanMax    = 1508
	ScrollIdRangeInvalid    = 1509
	LimitValueIllegal       = 1510
	LimitValueLargerThanMax = 1511
	LimitValueLowerThanMin  = 1512
	HighlightValueIllegal   = 1513
	SqlValueIllegal         = 1514
	TooLongQuery            = 1515
	WrongScrollId           = 1516
	ScrollIdIllegal         = 1517
	SetValueFailed          = 1518
)

query interface error codes

View Source
const (
	CreateIndexFailPointRowType        = 2101
	InvalidDataDir                     = 2102
	InvalidMetaDir                     = 2103
	InvalidImmTableMaxMemoryPercentage = 2104
	InvalidMaxConcurrentCompactions    = 2105
	InvalidMaxFullCompactions          = 2106
	InvalidShardMutableSizeLimit       = 2107
	InvalidNodeMutableSizeLimit        = 2108
	UnrecognizedEngine                 = 2109
	RecoverFileFailed                  = 2110
	NotAllTsspFileOpenSuccess          = 2111
	NotAllTsspFileLoadSuccess          = 2112
	ProcessCompactLogFailed            = 2113
	LoadFilesFailed                    = 2114
	CreateFileFailed                   = 2115
	RenameFileFailed                   = 2116
	WriteFileFailed                    = 2117
	RemoveFileFailed                   = 2118
	ReadFileFailed                     = 2119
	OpenFileFailed                     = 2120
	MapFileFailed                      = 2121
	CloseFileFailed                    = 2122
	ReadWalFileFailed                  = 2123
	DecompressWalRecordFailed          = 2124
	WalRecordHeaderCorrupted           = 2125
	WalRecordUnmarshalFailed           = 2126
	CompactPanicFail                   = 2127
	ErrShardClosed                     = 2128
	DBPTClosed                         = 2129
	ShardNotFound                      = 2130
	IndexNotFound                      = 2131
	FailedToDecodeFloatArray           = 2132
	InvalidFloatBuffer                 = 2133
	MemUsageExceeded                   = 2134
	ShardCannotMove                    = 2135
	ShardIsMoving                      = 2136
	ShardMovingStopped                 = 2137
)

store engine error codes

View Source
const (
	SeriesIdIsZero     = 2201
	DiffLengthOfColVal = 2202
	DiffSchemaType     = 2203
	MergeCanceled      = 2204
)

merge out of order

View Source
const (
	UnsupportedExprType            = 3001
	UnsupportedToFillPrevious      = 3002
	UnsupportedConditionInFullJoin = 3003
	UnsupportedHoltWinterInit      = 3004
	SortTransformRunningErr        = 3005
	HashMergeTransformRunningErr   = 3006
	HashAggTransformRunningErr     = 3007
	InvalidIncQueryScrollID        = 3008
	FailedGetNodeMaxIterNum        = 3009
	FailedPutGlobalMaxIterNum      = 3010
	FailedGetGlobalMaxIterNum      = 3011
	FailedRetryInvalidCache        = 3012
	FailedGetIncAggItem            = 3013
	InvalidIncQueryTimeDuration    = 3015
	InvalidIncAggItem              = 3016
	ErrIncAggIterID                = 3017
	ErrInputTimeExceedTimeRange    = 3018
	FailedPutNodeMaxIterNum        = 3019
)

query engine error codes

View Source
const (
	FieldTypeConflict                  = 4001
	DatabaseNotFound                   = 4002
	DataNodeNotFound                   = 4003
	DataNoAlive                        = 4004
	PtNotFound                         = 4005
	ShardMetaNotFound                  = 4006
	DataIsOlder                        = 4007
	DatabaseIsBeingDelete              = 4008
	MetaIsNotLeader                    = 4009
	RaftIsNotOpen                      = 4010
	ShardKeyConflict                   = 4011
	ErrMeasurementNotFound             = 4012
	NeedChangeStore                    = 4013
	StateMachineIsNotRunning           = 4014
	ConflictWithEvent                  = 4015
	EventIsInterrupted                 = 4016
	EventNotFound                      = 4017
	PtChanged                          = 4018
	OpIdIsInvalid                      = 4019
	ClusterManagerIsNotRunning         = 4020
	ErrMigrationRequestDB              = 4021
	ErrMigrationRequestPt              = 4022
	InvalidName                        = 4023
	DownSamplePolicyExists             = 4024
	DownSamplePolicyNotFound           = 4025
	DownSampleIntervalCheck            = 4026
	DownSampleIntervalLenCheck         = 4027
	DownSampleParaError                = 4028
	DownSampleUnExpectedDataType       = 4029
	DownSampleAtLeastOneOpsForDataType = 4030
	DownSampleUnsupportedAggOp         = 4031
	RpNotFound                         = 4032
	PtEventIsAlreadyExist              = 4033
	PtIsAlreadyMigrating               = 4034
	InvalidMigrationType               = 4035
	StreamHasExist                     = 4036
	StreamNotFound                     = 4037
	UpdateShardIdentFail               = 4038
	DataNodeSplitBrain                 = 4039
	OlderEvent                         = 4040
	RpIsBeingDelete                    = 4041
	ShardIsBeingDelete                 = 4042
	MstIsBeingDelete                   = 4043
	ErrMeasurementsNotFound            = 4044
	InvalidTagKey                      = 4045
	ConflictWithRep                    = 4046
	ReplicaNumberNotEqual              = 4047
	ReplicaNumberNotSupport            = 4048
	ReplicaNodeNumIncorrect            = 4049
	EventSrcNodeSegregating            = 4050
	EventDstNodeSegregating            = 4051
	InValidNodeID                      = 4052
	InValidNodeType                    = 4053
)

meta

View Source
const (
	InvalidPwdLen      = 4101
	InvalidWeakPwd     = 4102
	InvalidPwdLooks    = 4103
	InvalidPwdComplex  = 4104
	InvalidUsernameLen = 4105
)

meta-client process

View Source
const (
	WriteNoShardGroup               = 5001
	WriteNoShardKey                 = 5002
	WritePointMustHaveAField        = 5003
	WritePointInvalidTimeField      = 5004
	WriteInvalidPoint               = 5005
	WritePointMustHaveAMeasurement  = 5006
	WritePointShouldHaveAllShardKey = 5007
	WritePointMap2Shard             = 5008

	// WriteMapMetaShardInfo abc
	WriteMapMetaShardInfo        = 5009
	ErrUnmarshalPoints           = 5010
	ErrWriteReadonly             = 5011
	ParseFieldTypeConflict       = 5012
	WritePointOutOfRP            = 5013
	WritePointShardKeyTooLarge   = 5014
	EngineClosed                 = 5015
	WriteMissTagValue            = 5016
	ErrorTagArrayFormat          = 5017
	WriteErrorArray              = 5018
	TooManyTagKeys               = 5019
	SeriesLimited                = 5020
	RecordWriterFatalErr         = 5021
	ArrowRecordTimeFieldErr      = 5022
	ArrowFlightGetRoleErr        = 5023
	ArrowFlightGetShardGroupErr  = 5024
	ColumnStoreColNumErr         = 5025
	ColumnStoreSchemaNullErr     = 5026
	ColumnStorePrimaryKeyNullErr = 5027
	ColumnStorePrimaryKeyLackErr = 5028
	ColumnStoreFieldNameErr      = 5029
	ColumnStoreFieldTypeErr      = 5030
	WritePointHasInvalidTag      = 5031
	WritePointHasInvalidField    = 5032
	WritePointSchemaInvalid      = 5033
	WritePointPrimaryKeyErr      = 5034
	KeyWordConflictErr           = 5035
	MeasurementNameTooLong       = 5036
)

write process

View Source
const (
	InvalidLogDataType                 = 5501
	InvalidMappingTimeKey              = 5502
	InvalidMappingContentKeyMissing    = 5503
	InvalidMappingTimeKeyType          = 5504
	InvalidMappingTimeKeyVal           = 5505
	InvalidMappingContentKeyType       = 5506
	InvalidMappingContentKeySubType    = 5507
	InvalidMappingContentKeyValMissing = 5508
	InvalidMappingTagsKeyType          = 5509
	InvalidMappingTagsKeySubType       = 5510
	InvalidRequestBodyLength           = 5511
	InvalidMappingDefaultType          = 5512
	InvalidRetryPara                   = 5513
	InvalidXLogCompressType            = 5514
)

write interface

View Source
const (
	ConvertToBinaryExprFailed  = 6001
	ErrQuerySeriesUpperBound   = 6002
	ErrTooSmallKeyCount        = 6003
	ErrTooSmallIndexKey        = 6004
	ErrGetNonExistingMark      = 6005
	ErrMarkRangeInserting      = 6006
	ErrUnknownOpInCondition    = 6007
	ErrInvalidStackInCondition = 6008
	ErrRPNSetInNotCreated      = 6009
	ErrRPNIsNullForNOT         = 6010
	ErrRPNIsNullForAnd         = 6011
	ErrRPNIsNullForOR          = 6012
	ErrRPNElemSchema           = 6013
	ErrRPNElemNum              = 6014
	ErrRPNElemOp               = 6015
	ErrRPNOp                   = 6016
	ErrRPNExpr                 = 6017
	ErrRPNElement              = 6018
	ErrCoarseIndexFragment     = 6019
	ErrQuerySchemaUpperBound   = 6020
	ErrValueTypeFullTextIndex  = 6021
)

index

View Source
const (
	DtypeNotSupport          = 8001
	DtypeNotMatch            = 8002
	NumOfFieldNotEqual       = 8003
	TimestampNotFound        = 8004
	TypeAssertFail           = 8005
	FailToProcessData        = 8006
	FailToFillUpConnPool     = 8007
	ClientQueueClosed        = 8008
	NoAvailableClient        = 8009
	ConnectionBroken         = 8010
	ResponseTimeout          = 8011
	FailToConnectToPyworker  = 8012
	UnknownDataMessage       = 8013
	UnknownDataMessageType   = 8014
	MessageNotFound          = 8015
	InvalidAddr              = 8016
	InvalidPort              = 8017
	AlgoConfNotFound         = 8018
	AlgoNotFound             = 8019
	AlgoTypeNotFound         = 8020
	InvalidResultWaitTimeout = 8021
	InvalidPoolSize          = 8022
	ServiceNotEnable         = 8023
	ServiceNotAlive          = 8024
	ResponseIncomplete       = 8025
	OnlySupportSingleField   = 8026
	InvalidArgsNum           = 8027
	DataTooMuch              = 8028
	FieldTypeNotEqual        = 8029
	FieldInfoNotFound        = 8030
	FieldNotFound            = 8031
	MultiFieldIndex          = 8032
	EmptyData                = 8033
	TaskQueueFull            = 8034
	ExceedRetryChance        = 8035
	UnknownErr               = 8036
	InvalidHaPolicy          = 8037
)

castor service

View Source
const (
	NodeSql    = 1
	NodeMeta   = 2
	NodeStore  = 3
	NodeServer = 4
	NodeData   = 5
)
View Source
const (
	ModuleUnknown        = 0
	ModuleQueryEngine    = 1
	ModuleWrite          = 2
	ModuleIndex          = 3
	ModuleMeta           = 4
	ModuleMetaRaft       = 5
	ModuleNetwork        = 6
	ModuleCompact        = 7
	ModuleMerge          = 8
	ModuleStorageEngine  = 9
	ModuleHA             = 10
	ModuleHTTP           = 11
	ModuleMetaClient     = 12
	ModuleTssp           = 13
	ModuleCoordinator    = 14
	ModuleWal            = 15
	ModuleStat           = 16
	ModuleShard          = 17
	ModuleDownSample     = 18
	ModuleCastor         = 19
	ModuleStream         = 20
	ModuleWriteInterface = 21
	ModuleQueryInterface = 22
	ModuleLogStore       = 23
	ModuleHierarchical   = 24
)
View Source
const (
	LevelNotice = 0
	LevelWarn   = 1
	LevelFatal  = 2
)
View Source
const (
	WatchFileTimeout = 7001
)

Variables

This section is empty.

Functions

func Equal

func Equal(err error, errno ...Errno) bool

func SetNode

func SetNode(node Node)

Types

type Errno

type Errno uint16

type Error

type Error struct {
	// contains filtered or unexported fields
}

func Convert

func Convert(err error, errno Errno, module Module, level Level) *Error

func NewBuiltIn

func NewBuiltIn(err error, module Module) *Error

func NewError

func NewError(errno Errno, args ...interface{}) *Error

func NewRemote

func NewRemote(err string, errno Errno) *Error

func NewThirdParty

func NewThirdParty(err error, module Module) *Error

func (*Error) Errno

func (s *Error) Errno() Errno

func (*Error) Error

func (s *Error) Error() string

func (*Error) Level

func (s *Error) Level() Level

func (*Error) Module

func (s *Error) Module() Module

func (*Error) SetErrno

func (s *Error) SetErrno(errno Errno) *Error

func (*Error) SetMessage added in v1.0.0

func (s *Error) SetMessage(message string)

func (*Error) SetModule

func (s *Error) SetModule(module Module) *Error

func (*Error) SetToFatal

func (s *Error) SetToFatal() *Error

func (*Error) SetToNotice

func (s *Error) SetToNotice() *Error

func (*Error) SetToWarn

func (s *Error) SetToWarn() *Error

func (*Error) Stack

func (s *Error) Stack() []byte

type Errs added in v1.0.0

type Errs struct {
	// contains filtered or unexported fields
}

func NewErrs added in v1.0.0

func NewErrs() *Errs

NewErrs func 1.store only 1 error 2.call callback at most once 3.wait 4.can reuse call order, NewErrs -> Init -> Dispatch -> Wait -> Err -> Clean

func (*Errs) Clean added in v1.0.0

func (s *Errs) Clean()

func (*Errs) Dispatch added in v1.0.0

func (s *Errs) Dispatch(err error)

Dispatch no lock, use len 1 error chan for lock

func (*Errs) Err added in v1.0.0

func (s *Errs) Err() error

func (*Errs) Init added in v1.0.0

func (s *Errs) Init(count int, callback func())

type ErrsPool added in v1.0.0

type ErrsPool struct {
	// contains filtered or unexported fields
}

func NewErrsPool added in v1.0.0

func NewErrsPool() *ErrsPool

func (*ErrsPool) Get added in v1.0.0

func (u *ErrsPool) Get() *Errs

func (*ErrsPool) Put added in v1.0.0

func (u *ErrsPool) Put(v *Errs)

type Level

type Level uint8

func (Level) LogStack

func (l Level) LogStack() bool

type Message

type Message struct {
	// contains filtered or unexported fields
}

type Module

type Module int8

type Node

type Node int8

func GetNode

func GetNode() Node

Jump to

Keyboard shortcuts

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