mirror of https://github.com/milvus-io/milvus.git
fix: Deprecated shard leader cache while deprecating collection (#30446)
Resolves: #30445 Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>pull/30464/head
parent
e0ed5647b3
commit
1c1dd48b71
|
@ -122,6 +122,7 @@ func (node *Proxy) InvalidateCollectionMetaCache(ctx context.Context, request *p
|
|||
case commonpb.MsgType_DropCollection, commonpb.MsgType_RenameCollection, commonpb.MsgType_DropAlias, commonpb.MsgType_AlterAlias:
|
||||
if collectionName != "" {
|
||||
globalMetaCache.RemoveCollection(ctx, request.GetDbName(), collectionName) // no need to return error, though collection may be not cached
|
||||
globalMetaCache.DeprecateShardCache(request.GetDbName(), collectionName)
|
||||
}
|
||||
if request.CollectionID != UniqueID(0) {
|
||||
aliasName = globalMetaCache.RemoveCollectionsByID(ctx, collectionID)
|
||||
|
|
Loading…
Reference in New Issue