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


##########
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:
   Seems changing the `newRaftClient` primary datanode to the closest node 
breaks the assertions previously set on https://github.com/apache/ratis/pull/945
   
   Let me update `RatisHelper`  like in 
https://github.com/apache/ozone/pull/5414/files#diff-1a864115055a782e3c25c76d3380bb55ab055f1851a353776e35910ba843193b



-- 
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