GlenGeng commented on a change in pull request #1916:
URL: https://github.com/apache/ozone/pull/1916#discussion_r580992672
##########
File path:
hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/ha/SCMRatisServerImpl.java
##########
@@ -208,12 +267,12 @@ public RaftPeerId getPeerId() {
String host = hosts.get(i);
if (InetAddress.getByName(host).equals(localHost)) {
selfPeerId = peerId;
+ raftPeers.add(RaftPeer.newBuilder()
+ .setId(peerId)
+ .setAddress(host + ":" + port)
+ .build());
+ break;
Review comment:
why need this change ? `raftPeers` should contain all the SCMs in
`ozone.scm.names`. With it, we can not build a 3 SCM cluster any more.
----------------------------------------------------------------
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]