Fix show loaded collections (#24628)

Signed-off-by: longjiquan <jiquan.long@zilliz.com>
This commit is contained in:
Jiquan Long 2023-06-02 18:04:35 +08:00 committed by GitHub
parent 6b1712e07d
commit 283bddec3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 {