harryteng9527 commented on code in PR #7388:
URL: https://github.com/apache/ozone/pull/7388#discussion_r1830233637


##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/ratis/OzoneManagerStateMachine.java:
##########
@@ -215,8 +216,10 @@ public void notifyConfigurationChanged(long term, long 
index,
       RaftProtos.RaftConfigurationProto newRaftConfiguration) {
     List<RaftProtos.RaftPeerProto> newPeers =
         newRaftConfiguration.getPeersList();
-    LOG.info("Received Configuration change notification from Ratis. New Peer" 
+
-        " list:\n{}", newPeers);
+    List<String> newPeersLogWithoutStartupRole = newPeers.stream()
+        .map(peer -> String.format("id: \"%s\" address: \"%s\"", 
peer.getId().toStringUtf8(), peer.getAddress()))
+        .collect(Collectors.toList());
+    LOG.info("Received Configuration change notification from Ratis. New Peer 
list: {}", newPeersLogWithoutStartupRole);

Review Comment:
   Thanks for reviewing! 
   
   After the modification, the current log will be like:
   ```=bash
   notifyConfigurationChanged from Ratis: term=1, index=0, New Peer list: 
omNode-3(localhost:15015), omNode-1(localhost:15007), omNode-2(localhost:15011)
   ```



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