bharatviswa504 commented on a change in pull request #1221: HDDS-1488. Scm cli 
command to start/stop replication manager.
URL: https://github.com/apache/hadoop/pull/1221#discussion_r310370527
 
 

 ##########
 File path: 
hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/server/SCMClientProtocolServer.java
 ##########
 @@ -469,6 +469,27 @@ public boolean forceExitSafeMode() throws IOException {
     return scm.exitSafeMode();
   }
 
+  @Override
+  public void startReplicationManager() {
+    AUDIT.logWriteSuccess(buildAuditMessageForSuccess(
+        SCMAction.START_REPLICATION_MANAGER, null));
+    scm.getReplicationManager().start();
+  }
+
+  @Override
+  public void stopReplicationManager() {
+    AUDIT.logWriteSuccess(buildAuditMessageForSuccess(
+        SCMAction.STOP_REPLICATION_MANAGER, null));
+    scm.getReplicationManager().stop();
 
 Review comment:
   Shall we want to return a boolean flag which shows whether the stop is a 
success or not?
   Like case calling stop on already stopped replication monitor, we can print 
like Replication Monitor is not running, to stop it(Or some message like this). 
   
   Same applicable for start also.

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


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to