You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by GitBox <gi...@apache.org> on 2022/01/27 21:39:39 UTC
[GitHub] [ozone] swagle commented on a change in pull request #3013: HDDS-6205. Add CLI command to display the latest Replication Manager report
swagle commented on a change in pull request #3013:
URL: https://github.com/apache/ozone/pull/3013#discussion_r794020085
##########
File path: hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/server/SCMClientProtocolServer.java
##########
@@ -732,6 +733,12 @@ public boolean getReplicationManagerStatus() {
return scm.getReplicationManager().isRunning();
}
+ @Override
+ public ReplicationManagerReport getReplicationManagerReport() {
+ AUDIT.logWriteSuccess(buildAuditMessageForSuccess(
+ SCMAction.GET_REPLICATION_MANAGER_REPORT, null));
+ return scm.getReplicationManager().getContainerReport();
+ }
Review comment:
Looking at this from CLI point of view, status generally has the same privilege as start/stop because it might be accessing resources like opening fds or checking ports for example to determine status. Although we do not need to do such things, use expectation is that it is privileged IMO.
--
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: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org