lokeshj1703 commented on a change in pull request #1318: HDDS-1753. Datanode 
unable to find chunk while replication data using ratis.
URL: https://github.com/apache/hadoop/pull/1318#discussion_r316175405
 
 

 ##########
 File path: 
hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/common/transport/server/ratis/XceiverServerRatis.java
 ##########
 @@ -654,4 +646,18 @@ public void handleNodeLogFailure(RaftGroupId groupId, 
Throwable t) {
     triggerPipelineClose(groupId, msg,
         ClosePipelineInfo.Reason.PIPELINE_LOG_FAILED, true);
   }
+
+  public long getMinReplicatedIndex(PipelineID pipelineID) throws IOException {
+    Long minIndex = null;
+    Iterator<RaftGroup> raftGroupIterator = getServer().getGroups().iterator();
+    while (raftGroupIterator.hasNext()) {
 
 Review comment:
   We can directly use the getServer().getGroupInfo(..) api here and do not 
need the while loop.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

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

Reply via email to