From 8efae8c04ca1f7a306c88bf825863cdc45b5c36b Mon Sep 17 00:00:00 2001 From: Cai Zhang Date: Thu, 19 Dec 2024 20:07:52 +0800 Subject: [PATCH] Return collection not loaded rather than not found on querynode Signed-off-by: Cai Zhang --- internal/querynodev2/services.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/querynodev2/services.go b/internal/querynodev2/services.go index 1eca7efe950cd..446f5fded4fa0 100644 --- a/internal/querynodev2/services.go +++ b/internal/querynodev2/services.go @@ -763,7 +763,7 @@ func (node *QueryNode) Search(ctx context.Context, req *querypb.SearchRequest) ( } collection := node.manager.Collection.Get(req.GetReq().GetCollectionID()) if collection == nil { - resp.Status = merr.Status(merr.WrapErrCollectionNotFound(req.GetReq().GetCollectionID())) + resp.Status = merr.Status(merr.WrapErrCollectionNotLoaded(req.GetReq().GetCollectionID())) return resp, nil }