From 3655ab10b210a5f9b99844ac5a6b0742e85a58c6 Mon Sep 17 00:00:00 2001 From: aoiasd <45024769+aoiasd@users.noreply.github.com> Date: Fri, 2 Aug 2024 11:52:14 +0800 Subject: [PATCH] fix: evict paramtable cache miss (#34771) relate: https://github.com/milvus-io/milvus/issues/33461 Signed-off-by: aoiasd --- pkg/config/manager.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkg/config/manager.go b/pkg/config/manager.go index 7292048cb1..29dc6ffb9c 100644 --- a/pkg/config/manager.go +++ b/pkg/config/manager.go @@ -139,8 +139,11 @@ func (m *Manager) EvictCacheValueByFormat(keys ...string) { m.cacheMutex.Lock() defer m.cacheMutex.Unlock() - for _, key := range keys { - delete(m.configCache, key) + set := typeutil.NewSet(keys...) + for key := range m.configCache { + if set.Contain(formatKey(key)) { + delete(m.configCache, key) + } } }