mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-02 20:09:57 +08:00
enhance: Correct misleading nodeID in GetComponentStates's log (#30731)
This PR corrects the misleading nodeId in GetComponentStates's log Signed-off-by: Wei Liu <wei.liu@zilliz.com>
This commit is contained in:
parent
8a219e0102
commit
382b7485a6
@ -63,11 +63,11 @@ func (node *QueryNode) GetComponentStates(ctx context.Context, req *milvuspb.Get
|
|||||||
code := node.lifetime.GetState()
|
code := node.lifetime.GetState()
|
||||||
nodeID := common.NotRegisteredID
|
nodeID := common.NotRegisteredID
|
||||||
|
|
||||||
log.Debug("QueryNode current state", zap.Int64("NodeID", nodeID), zap.String("StateCode", code.String()))
|
|
||||||
|
|
||||||
if node.session != nil && node.session.Registered() {
|
if node.session != nil && node.session.Registered() {
|
||||||
nodeID = node.GetNodeID()
|
nodeID = node.GetNodeID()
|
||||||
}
|
}
|
||||||
|
log.Debug("QueryNode current state", zap.Int64("NodeID", nodeID), zap.String("StateCode", code.String()))
|
||||||
|
|
||||||
info := &milvuspb.ComponentInfo{
|
info := &milvuspb.ComponentInfo{
|
||||||
NodeID: nodeID,
|
NodeID: nodeID,
|
||||||
Role: typeutil.QueryNodeRole,
|
Role: typeutil.QueryNodeRole,
|
||||||
|
Loading…
Reference in New Issue
Block a user