From 283bddec3b547d2d7a0b0a8148fe10e0d5f6af2c Mon Sep 17 00:00:00 2001 From: Jiquan Long Date: Fri, 2 Jun 2023 18:04:35 +0800 Subject: [PATCH] Fix show loaded collections (#24628) Signed-off-by: longjiquan --- internal/proxy/task.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/internal/proxy/task.go b/internal/proxy/task.go index 1ed06de067..7c9a9613b3 100644 --- a/internal/proxy/task.go +++ b/internal/proxy/task.go @@ -647,9 +647,10 @@ func (sct *showCollectionsTask) Execute(ctx context.Context) error { for offset, id := range resp.CollectionIDs { collectionName, ok := IDs2Names[id] if !ok { - log.Debug("Failed to get collection info.", zap.Any("collectionName", collectionName), + log.Debug("Failed to get collection info. This collection may be not released", + zap.Any("collectionID", id), zap.Any("requestID", sct.Base.MsgID), zap.Any("requestType", "showCollections")) - return errors.New("failed to show collections") + continue } collectionInfo, err := globalMetaCache.GetCollectionInfo(ctx, collectionName) if err != nil {