fix: Search before kill coord to ensure proxy init shard leader cache (#45848)

issue: #45847

Signed-off-by: Cai Zhang <cai.zhang@zilliz.com>
This commit is contained in:
cai.zhang 2025-11-26 04:03:07 +08:00 committed by GitHub
parent 471b3e4e09
commit 72d4df582f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -285,6 +285,8 @@ func (s *CoordDownSearch) searchAfterCoordDown() float64 {
start := time.Now()
// Perform a search first to ensure that the proxy initializes its shard-leader cache.
s.search(searchCollectionName, Dim, commonpb.ConsistencyLevel_Bounded)
log.Info("=========================Root Coordinators stopped=========================")
c.DefaultMixCoord().Stop()
s.search(searchCollectionName, Dim, commonpb.ConsistencyLevel_Bounded)