Fix querycoord handle offline node with wrong nodeID (#18590)

Signed-off-by: xige-16 <xi.ge@zilliz.com>
This commit is contained in:
xige-16 2022-08-10 21:10:37 +08:00 committed by GitHub
parent 1366f130a2
commit 29384ddbc0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
}
}