szetszwo commented on code in PR #12075:
URL: https://github.com/apache/ozone/pull/12075#discussion_r4632810210
##########
hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/common/transport/server/ratis/XceiverServerRatis.java:
##########
@@ -237,7 +245,14 @@ private int determinePort(String key, int defaultValue) {
}
private ContainerStateMachine getStateMachine(RaftGroupId gid) {
- return new ContainerStateMachine(datanodeService, gid, dispatcher,
containerController,
+ ReplicationType type = addingGroups.get(gid);
+ if (type == null) {
+ // The type is unknown when the group is reloaded on restart or added by
a peer.
+ // TODO HDDS-17845: support restart for CHAINED.
+ LOG.info("{}: ReplicationType is unknown, use {}", gid,
ReplicationType.RATIS);
Review Comment:
We will replace it in HDDS-17845 once this PR has been merged. Let's don't
spend time on changing.
--
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]