From 29384ddbc0a46cbcfca924f40b6117069bed3fa9 Mon Sep 17 00:00:00 2001 From: xige-16 Date: Wed, 10 Aug 2022 21:10:37 +0800 Subject: [PATCH] Fix querycoord handle offline node with wrong nodeID (#18590) Signed-off-by: xige-16 --- internal/querycoord/query_coord.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/querycoord/query_coord.go b/internal/querycoord/query_coord.go index a632d1871b..604f24173e 100644 --- a/internal/querycoord/query_coord.go +++ b/internal/querycoord/query_coord.go @@ -369,8 +369,8 @@ func (qc *QueryCoord) watchNodeLoop() { offlineNodes := qc.cluster.OfflineNodeIDs() if len(offlineNodes) != 0 { log.Warn("find querynode down while coord not alive", zap.Any("nodeIDs", offlineNodes)) - for node := range offlineNodes { - qc.offlineNodesChan <- UniqueID(node) + for _, node := range offlineNodes { + qc.offlineNodesChan <- node } }