kaisun2000 commented on a change in pull request #1485:
URL: https://github.com/apache/helix/pull/1485#discussion_r512918271



##########
File path: helix-core/src/main/java/org/apache/helix/model/ClusterConfig.java
##########
@@ -937,6 +940,27 @@ public long getOfflineNodeTimeOutForMaintenanceMode() {
             OFFLINE_NODE_TIME_OUT_FOR_MAINTENANCE_MODE_NOT_SET);
   }
 
+  /**
+   * Set the default time out window for offline nodes to be purged. If an 
offline node has been
+   * offline for more than this specified time period, when users call purge 
participants API,
+   * the node will be dropped.
+   * @param timeOut timeout window in milliseconds.
+   */
+  public void setOfflineNodeTimeOutForPurge(long timeOut) {
+    
_record.setLongField(ClusterConfigProperty.OFFLINE_NODE_TIME_OUT_FOR_PURGE.name(),
+        timeOut);
+  }
+
+  /**
+   * Get the default time out window for offline nodes to be purged. I

Review comment:
       nit, additional "I" at end of this line.




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