From 5cdc1af1aff3d2da579a1fb1bf679ecf295cfae3 Mon Sep 17 00:00:00 2001 From: neza2017 Date: Tue, 22 Jun 2021 14:04:08 +0800 Subject: [PATCH] fix proxy node (#5965) Signed-off-by: yefu.chen --- internal/proxynode/impl.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/internal/proxynode/impl.go b/internal/proxynode/impl.go index 4134787193..a017c128f1 100644 --- a/internal/proxynode/impl.go +++ b/internal/proxynode/impl.go @@ -78,8 +78,9 @@ func (node *ProxyNode) InvalidateCollectionMetaCache(ctx context.Context, reques zap.String("collection", request.CollectionName)) collectionName := request.CollectionName - globalMetaCache.RemoveCollection(ctx, collectionName) // no need to return error, though collection may be not cached - + if globalMetaCache != nil { + globalMetaCache.RemoveCollection(ctx, collectionName) // no need to return error, though collection may be not cached + } log.Debug("InvalidateCollectionMetaCache Done", zap.String("role", Params.RoleName), zap.String("db", request.DbName),