Documentation
¶
Index ¶
- Constants
- func Equal(err error, errno ...Errno) bool
- func SetNode(node Node)
- type Errno
- type Error
- func (s *Error) Errno() Errno
- func (s *Error) Error() string
- func (s *Error) Level() Level
- func (s *Error) Module() Module
- func (s *Error) SetErrno(errno Errno) *Error
- func (s *Error) SetMessage(message string)
- func (s *Error) SetModule(module Module) *Error
- func (s *Error) SetToFatal() *Error
- func (s *Error) SetToNotice() *Error
- func (s *Error) SetToWarn() *Error
- func (s *Error) Stack() []byte
- type Errs
- type ErrsPool
- type Level
- type Message
- type Module
- type Node
Constants ¶
View Source
const ( HttpBadRequest = 6400 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 = 1026 DataACKTimeout = 1027 InvalidTLSConfig = 1028 )
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 ChunkReaderCursor = 1127 ApplyFuncErr = 1128 QueryAborted = 1129 )
query engine error codes
View Source
const ( UnsupportedPromExpr = 1201 TranspileAggFail = 1202 WithoutNotSupported = 1203 ErrFloatParamAggExpr = 1204 UnsupportedAggType = 1205 UnableLeftBinOp = 1206 UnableRightBinOp = 1207 MissBoolModifier = 1208 InvalidSSBinOp = 1209 InvalidSVBinOp = 1210 UnsupportedBothVS = 1211 TranspileFunctionFail = 1212 ParseTimeFail = 1213 ErrPopulatePromSeries = 1214 ErrGroupResultBySeries = 1215 UnsupportedValueType = 1216 InvalidOutputPoint = 1217 ErrRegularExpSyntax = 1218 UnsupportedMatchType = 1219 TranspileIVSFail = 1220 TranspileExprFail = 1221 UnsupportedNodeType = 1222 InvalidExprType = 1223 TranspileUnaryExprFail = 1224 InvalidUnaryExpr = 1225 InvalidPromMstName = 1226 )
promql2influxql
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 OpsMapInValid = 4054 OpMarshalErr = 4055 SqlNodeNotFound = 4056 PtIsDoingSomeShardMove = 4057 )
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 RepConfigWriteNoRepDB = 5037 CleanSchemaCheckErr = 5038 UsedProposeId = 5039 WriteToRaftTimeoutAfterPropose = 5040 )
write process
View Source
const ( InvalidLogDataType = 5501 InvalidMappingTimeKey = 5502 InvalidMappingTimeKeyType = 5503 InvalidMappingTimeKeyVal = 5504 InvalidMappingTimeFormatVal = 5505 InvalidMappingTimeZone = 5506 InvalidMappingTimeZoneVal = 5507 InvalidMappingDiscardKeyType = 5508 InvalidMappingDiscardKeySubType = 5509 InvalidMappingDiscardKeyVal = 5510 InvalidRequestBodyLength = 5511 InvalidLogTagsParmLength = 5512 InvalidRetryPara = 5513 InvalidPrecisionPara = 5514 InvalidXLogCompressType = 5515 ErrLogTagsJsonFormat = 5516 ErrFieldDataType = 5517 ErrTagFieldDataType = 5518 ErrFieldDuplication = 5519 ErrTagFieldDuplication = 5520 ErrReservedFieldDuplication = 5521 ErrParseTimestamp = 5522 )
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 ErrSearchSeriesKey = 6022 )
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 ¶
Types ¶
type Error ¶
type Error struct {
// contains filtered or unexported fields
}
func NewBuiltIn ¶
func NewThirdParty ¶
func (*Error) SetMessage ¶ added in v1.0.0
func (*Error) SetToFatal ¶
func (*Error) SetToNotice ¶
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
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
Click to show internal directories.
Click to hide internal directories.