aparnasuresh85 commented on code in PR #2599:
URL: https://github.com/apache/solr/pull/2599#discussion_r1707163750


##########
solr/core/src/java/org/apache/solr/handler/admin/ClusterStatus.java:
##########
@@ -116,9 +118,19 @@ public void getClusterStatus(NamedList<Object> results)
       // add live_nodes
       if (withLiveNodes) clusterStatus.add("live_nodes", liveNodes);
     }
+
+    Aliases aliases = null;
+    if (withCollection || withAliases) {

Review Comment:
   Whether a `collection` parameter is passed (where the input could be either 
a collection or an alias) or if `includeAll` is set to `true`, aliases are 
retrieved from `ZkStateReader` to create a mapping of collections to the list 
of aliases associated with them and returned as part of the response. In this 
case and/or if `withAliases=true`, the set of aliases is read once.



-- 
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: [email protected]

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