jiajunwang commented on a change in pull request #1740:
URL: https://github.com/apache/helix/pull/1740#discussion_r633831169



##########
File path: helix-core/src/main/java/org/apache/helix/HelixAdmin.java
##########
@@ -367,6 +368,41 @@ void manuallyEnableMaintenanceMode(String clusterName, 
boolean enabled, String r
    */
   boolean isInMaintenanceMode(String clusterName);
 
+  /**
+   * Puts a cluster into pause mode, which will pause controller and 
participants.
+   * This can be used to retain the cluster state. When this method returns, 
it means
+   * the pause signal has been successfully sent, but it does not mean the 
cluster has
+   * fully entered pause mode. Because the cluster can take some time to 
finish the pause and
+   * process possible pending state transitions if necessary.
+   * <p>
+   * To check the cluster pause status, call {@link 
#getClusterPauseStatus(String)}.
+   *
+   * @param clusterName Participant cluster name.
+   * @param cancelPendingST whether or not cancel the pending state 
transitions for participants.
+   * @param reason The reason to put the cluster into pause mode.
+   */
+  void enableClusterPauseMode(String clusterName, boolean cancelPendingST, 
String reason);
+
+  /**
+   * Gets cluster pause status {@link ClusterPauseStatus}.
+   *
+   * @param clusterName cluster name.
+   * @return {@link ClusterPauseStatus}
+   */
+  ClusterPauseStatus getClusterPauseStatus(String clusterName);

Review comment:
       Not true. If you make this change, then we are diverged from what we 
want to implement. It would be impossible to remove this public API once we 
have it in a short period.
   
   This is a new API, we don't add APIs that known to be refactored soon.




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

Reply via email to