Tejaskriya commented on code in PR #6642:
URL: https://github.com/apache/ozone/pull/6642#discussion_r1591226674
##########
hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/ha/SCMRatisServerImpl.java:
##########
@@ -335,8 +335,11 @@ public boolean addSCM(AddSCMRequest request) throws
IOException {
}
return raftClientReply.isSuccess();
} catch (IOException e) {
- LOG.error("Failed to update Ratis configuration and add new peer. " +
- "Cannot add new SCM: {}.", scm.getScmId(), e);
+ LOG.warn("Failed to update Ratis configuration and add new peer. " +
+ "Cannot add new SCM: {}. {}", scm.getScmId(), e.getMessage());
+ if (LOG.isDebugEnabled()) {
+ LOG.info("Cannot add new SCM: {}. {}", scm.getScmId(), e);
Review Comment:
Thank you for the review! I have changed it to debug log. As we want to
print only the stackTrace as apart of the debug log, I have added it to the
LOG.debug. Could you please review it again?
--
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]