Skip to content

Commit ccbd5b5

Browse files
andyyang890claude
andcommitted
kvcoord: include destination node ID in mux rangefeed recv errors
Previously, when mux rangefeed connections encountered gRPC recv errors, the error messages did not include the destination node ID, making it difficult to troubleshoot which node was causing connection issues. This change wraps mux rangefeed recv errors with the destination node ID information in the `receiveEventsFromNode` function. Release note: None 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 034a4cb commit ccbd5b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/kv/kvclient/kvcoord/dist_sender_mux_rangefeed.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ func (m *rangefeedMuxer) receiveEventsFromNode(
457457
for {
458458
event, err := receiver.Recv()
459459
if err != nil {
460-
return err
460+
return errors.Wrapf(err, "receiving from node %d", ms.nodeID)
461461
}
462462

463463
active := ms.lookupStream(event.StreamID)

0 commit comments

Comments
 (0)