From e7fb87d491d800b3e7d47c532fd6b9346d1c97c2 Mon Sep 17 00:00:00 2001 From: congqixia Date: Wed, 13 Nov 2024 19:52:29 +0800 Subject: [PATCH] enhance: Fix lb policy retry log after targetNode type changed (#37646) Related to previous pr: #37371 Signed-off-by: Congqi Xia --- internal/proxy/lb_policy.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/proxy/lb_policy.go b/internal/proxy/lb_policy.go index b2dd8e2ab52c6..59e746d367036 100644 --- a/internal/proxy/lb_policy.go +++ b/internal/proxy/lb_policy.go @@ -200,7 +200,7 @@ func (lb *LBPolicyImpl) ExecuteWithRetry(ctx context.Context, workload ChannelWo zap.Error(err)) excludeNodes.Insert(targetNode.nodeID) - lastErr = errors.Wrapf(err, "failed to get delegator %d for channel %s", targetNode, workload.channel) + lastErr = errors.Wrapf(err, "failed to get delegator %d for channel %s", targetNode.nodeID, workload.channel) return lastErr } defer lb.clientMgr.ReleaseClientRef(targetNode.nodeID) @@ -213,7 +213,7 @@ func (lb *LBPolicyImpl) ExecuteWithRetry(ctx context.Context, workload ChannelWo zap.Int64("nodeID", targetNode.nodeID), zap.Error(err)) excludeNodes.Insert(targetNode.nodeID) - lastErr = errors.Wrapf(err, "failed to search/query delegator %d for channel %s", targetNode, workload.channel) + lastErr = errors.Wrapf(err, "failed to search/query delegator %d for channel %s", targetNode.nodeID, workload.channel) return lastErr }