Gargi-jais11 commented on code in PR #12089:
URL: https://github.com/apache/ozone/pull/12089#discussion_r4624837755


##########
hadoop-hdds/client/src/main/java/org/apache/hadoop/hdds/scm/XceiverClientManager.java:
##########
@@ -260,14 +261,20 @@ protected XceiverClientSpi getClient(Pipeline pipeline, 
boolean topologyAware, b
     }
   }
 
+  private static boolean isECReplica(Pipeline pipeline) {
+    return pipeline.getReplicaIndexes().values().stream().anyMatch(index -> 
index > 0);

Review Comment:
   Thanks @adoroszlai for pointing this out. Checking the type first makes that 
explicit and skips the stream for Ratis pipelines. It's worth adding.



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