mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
enhance: return exception type name when segcore return unkonwn exception (#38326)
relate: https://github.com/milvus-io/milvus/issues/38265 Signed-off-by: aoiasd <zhicheng.yue@zilliz.com>
This commit is contained in:
parent
25f0c82ceb
commit
c7ea09a8be
@ -212,11 +212,13 @@ class Future : public IFuture {
|
||||
ready->setValue(LeakyResult<R>(
|
||||
static_cast<int>(e.get_error_code()), e.what()));
|
||||
})
|
||||
.thenError(folly::tag_t<std::exception>{},
|
||||
[ready = ready_](const std::exception& e) {
|
||||
ready->setValue(LeakyResult<R>(
|
||||
milvus::UnexpectedError, e.what()));
|
||||
});
|
||||
.thenError(
|
||||
folly::tag_t<std::exception>{},
|
||||
[ready = ready_](const std::exception& e) {
|
||||
ready->setValue(LeakyResult<R>(
|
||||
milvus::UnexpectedError,
|
||||
fmt::format("{} :{}", typeid(e).name(), e.what())));
|
||||
});
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
@ -1280,7 +1280,7 @@ class TestCollectionSearchInvalid(TestcaseBase):
|
||||
expr,
|
||||
check_task=CheckTasks.err_res,
|
||||
check_items={"err_code": 65535,
|
||||
"err_msg": "query failed: Operator::GetOutput failed"})
|
||||
"err_msg": "query failed: N6milvus21ExecOperatorExceptionE :Operator::GetOutput failed"})
|
||||
|
||||
|
||||
class TestCollectionSearch(TestcaseBase):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user