fix: [2.6]Search before kill coord to ensure proxy init shard leader cache (#45849)

issue: #45847 
master pr: #45848

Signed-off-by: Cai Zhang <cai.zhang@zilliz.com>
This commit is contained in:
cai.zhang 2025-11-26 04:05:11 +08:00 committed by GitHub
parent a5008ea509
commit feffbf90d2
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() 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=========================") log.Info("=========================Root Coordinators stopped=========================")
c.DefaultMixCoord().Stop() c.DefaultMixCoord().Stop()
s.search(searchCollectionName, Dim, commonpb.ConsistencyLevel_Bounded) s.search(searchCollectionName, Dim, commonpb.ConsistencyLevel_Bounded)