szetszwo commented on code in PR #5666:
URL: https://github.com/apache/ozone/pull/5666#discussion_r1416172421


##########
hadoop-hdds/client/src/main/java/org/apache/hadoop/hdds/scm/XceiverClientRatis.java:
##########
@@ -180,7 +180,7 @@ public Pipeline getPipeline() {
   public void connect() throws Exception {
     if (LOG.isDebugEnabled()) {
       LOG.debug("Connecting to pipeline:{} datanode:{}", getPipeline().getId(),
-          RatisHelper.toRaftPeerId(pipeline.getFirstNode()));
+          RatisHelper.toRaftPeerId(pipeline.getClosestNode()));

Review Comment:
   Ratis has 2 cases:
   1. Async Api: connect to leader
   2. Stream Api: connect to closest
   
   We should print them separately.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to