yandrey321 commented on code in PR #10594:
URL: https://github.com/apache/ozone/pull/10594#discussion_r3475926536


##########
hadoop-ozone/client/src/main/java/org/apache/hadoop/ozone/client/checksum/ECFileChecksumHelper.java:
##########
@@ -79,13 +87,32 @@ protected List<ContainerProtos.ChunkInfo> 
getChunkInfos(OmKeyLocationInfo
         // The stripe checksum we need to calculate checksums is only stored on
         // replica_index = 1 and all the parity nodes.
         nodes.add(dn);
+        selectedReplicaIndexes.put(dn, replicaIndex);
       }
     }
 
-    pipeline = pipeline.toBuilder()
+    // Build a deterministic pipeline ID from the sorted node UUIDs so that
+    // XceiverClientManager can cache and reuse the gRPC connection across 
files
+    // that share the same EC placement group (avoids a new connection per 
file).
+    List<DatanodeDetails> sortedNodes = new ArrayList<>(nodes);
+    sortedNodes.sort(Comparator.comparing(DatanodeDetails::getUuidString));
+    String nodeKey = sortedNodes.stream()
+        .map(DatanodeDetails::getUuidString)

Review Comment:
   fixed



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