mirror of https://github.com/milvus-io/milvus.git
fix: repeated error code in milvus and segcore (#37359)
issue: #37357 Signed-off-by: chyezh <chyezh@outlook.com>pull/37365/head
parent
b83b376cfc
commit
9a0e1c82bc
|
@ -64,13 +64,13 @@ enum ErrorCode {
|
||||||
MemAllocateFailed = 2034,
|
MemAllocateFailed = 2034,
|
||||||
MemAllocateSizeNotMatch = 2035,
|
MemAllocateSizeNotMatch = 2035,
|
||||||
MmapError = 2036,
|
MmapError = 2036,
|
||||||
OutOfRange = 2037,
|
// timeout or cancel related
|
||||||
GcpNativeError = 2038,
|
FollyOtherException = 2037,
|
||||||
KnowhereError = 2100,
|
FollyCancel = 2038,
|
||||||
|
OutOfRange = 2039,
|
||||||
|
GcpNativeError = 2040,
|
||||||
|
|
||||||
// timeout or cancel related.
|
KnowhereError = 2099
|
||||||
FollyOtherException = 2200,
|
|
||||||
FollyCancel = 2201
|
|
||||||
};
|
};
|
||||||
namespace impl {
|
namespace impl {
|
||||||
void
|
void
|
||||||
|
|
|
@ -180,8 +180,11 @@ var (
|
||||||
ErrSegcore = newMilvusError("segcore error", 2000, false)
|
ErrSegcore = newMilvusError("segcore error", 2000, false)
|
||||||
ErrSegcoreUnsupported = newMilvusError("segcore unsupported error", 2001, false)
|
ErrSegcoreUnsupported = newMilvusError("segcore unsupported error", 2001, false)
|
||||||
ErrSegcorePretendFinished = newMilvusError("segcore pretend finished", 2002, false)
|
ErrSegcorePretendFinished = newMilvusError("segcore pretend finished", 2002, false)
|
||||||
ErrSegcoreFollyOtherException = newMilvusError("segcore folly other exception", 2200, false) // throw from segcore.
|
ErrSegcoreFollyOtherException = newMilvusError("segcore folly other exception", 2037, false) // throw from segcore.
|
||||||
ErrSegcoreFollyCancel = newMilvusError("segcore Future was canceled", 2201, false) // throw from segcore.
|
ErrSegcoreFollyCancel = newMilvusError("segcore Future was canceled", 2038, false) // throw from segcore.
|
||||||
|
ErrSegcoreOutOfRange = newMilvusError("segcore out of range", 2039, false) // throw from segcore.
|
||||||
|
ErrSegcoreGCPNativeError = newMilvusError("segcore GCP native error", 2040, false) // throw from segcore.
|
||||||
|
KnowhereError = newMilvusError("knowhere error", 2099, false) // throw from segcore.
|
||||||
|
|
||||||
// Do NOT export this,
|
// Do NOT export this,
|
||||||
// never allow programmer using this, keep only for converting unknown error to milvusError
|
// never allow programmer using this, keep only for converting unknown error to milvusError
|
||||||
|
|
Loading…
Reference in New Issue