Fix dml stream leakage in Proxy (#19486)

Signed-off-by: longjiquan <jiquan.long@zilliz.com>

Signed-off-by: longjiquan <jiquan.long@zilliz.com>
This commit is contained in:
Jiquan Long 2022-09-27 20:56:54 +08:00 committed by GitHub
parent ec5c2c03f5
commit 0ecf2045ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -115,6 +115,10 @@ func (node *Proxy) InvalidateCollectionMetaCache(ctx context.Context, request *p
globalMetaCache.RemoveCollectionsByID(ctx, collectionID)
}
}
// err is ignored, since this Proxy may not create dml stream for the collection.
_ = node.chMgr.removeDMLStream(collectionID)
logutil.Logger(ctx).Info("complete to invalidate collection meta cache",
zap.String("role", typeutil.ProxyRole),
zap.String("db", request.DbName),