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


##########
hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/common/transport/server/ratis/XceiverServerRatis.java:
##########
@@ -893,6 +935,11 @@ public Collection<RaftPeer> getRaftPeers(RaftGroupId 
groupId) throws IOException
     return server.getDivision(groupId).getGroup().getPeers();
   }
 
+  /** @return the {@link ReplicationType} of the given group. */
+  public ReplicationType getReplicationType(RaftGroupId groupId) throws 
IOException {
+    return ((ContainerStateMachine) 
server.getDivision(groupId).getStateMachine()).getReplicationType();

Review Comment:
   The entry will be removed as soon as addingGroups the ContainerStateMachine 
is created.  So, let's just get it from ContainerStateMachine to reduce 
redundant information for simplicity.



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