NealSun96 commented on a change in pull request #1413:
URL: https://github.com/apache/helix/pull/1413#discussion_r500605923
##########
File path:
helix-core/src/main/java/org/apache/helix/controller/dataproviders/BaseControllerDataProvider.java
##########
@@ -428,13 +471,30 @@ public synchronized void setIdealStates(List<IdealState>
idealStates) {
}
/**
- * Returns the LiveInstances for each of the instances that are curretnly up
and running
+ * Returns the LiveInstances for each of the instances that are currently up
and running
* @return
*/
public Map<String, LiveInstance> getLiveInstances() {
+ return getLiveInstances(true);
+ }
+
+ /**
+ * Returns the LiveInstances for each of the instances that are currently up
and running
+ * @param excludeTimeoutInstances - Only effective during maintenance mode.
If true, filter out
+ * instances that are timed-out during
maintenance mode; instances
+ * are timed-out if they have been offline
for a while before going
+ * live during maintenance mode.
+ * @return
+ */
+ public Map<String, LiveInstance> getLiveInstances(boolean
excludeTimeoutInstances) {
Review comment:
Discussed offline: function is made private. It can be extended later
on.
----------------------------------------------------------------
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]