未验证 提交 f973456c 编写于 作者: X xige-16 提交者: GitHub

filter delEvent when querynode register fail (#6150)

Signed-off-by: Nxige-16 <xi.ge@zilliz.com>
上级 ca4cba15
...@@ -239,6 +239,7 @@ func (qc *QueryCoord) watchNodeLoop() { ...@@ -239,6 +239,7 @@ func (qc *QueryCoord) watchNodeLoop() {
}() }()
case sessionutil.SessionDelEvent: case sessionutil.SessionDelEvent:
serverID := event.Session.ServerID serverID := event.Session.ServerID
if _, ok := qc.cluster.nodes[serverID]; ok {
log.Debug("query coordinator", zap.Any("The QueryNode crashed with ID", serverID)) log.Debug("query coordinator", zap.Any("The QueryNode crashed with ID", serverID))
qc.cluster.nodes[serverID].setNodeState(false) qc.cluster.nodes[serverID].setNodeState(false)
qc.cluster.nodes[serverID].client.Stop() qc.cluster.nodes[serverID].client.Stop()
...@@ -275,6 +276,7 @@ func (qc *QueryCoord) watchNodeLoop() { ...@@ -275,6 +276,7 @@ func (qc *QueryCoord) watchNodeLoop() {
} }
} }
} }
}
} }
func (qc *QueryCoord) watchMetaLoop() { func (qc *QueryCoord) watchMetaLoop() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册