You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Anca Kopetz <an...@kelkoo.com> on 2013/07/03 09:28:17 UTC
Problem with CoreAdminRequest/GET_CORE_STATUS in SolrCloud
Hi,
We have a solr cloud cluster with 2 different collections, each
collection having many nodes. We try to get the status of each
collection using CoreAdminRequest.
The code gets all live nodes from the cluster and sends a request to
each node until it gets a valid response.
We would like to have the status for each collection, but the code does
not filter the live nodes by collection name when the request path
contains "/admin/collections" or "/admin/cores".
CloudSolrServer.java
if (request.getPath().equals("/admin/collections") ||
request.getPath().equals("/admin/cores")) {
Set<String> liveNodes = clusterState.getLiveNodes();
for (String liveNode : liveNodes) {
int splitPointBetweenHostPortAndContext = liveNode.indexOf("_");
theUrlList.add("http://"
+ liveNode.substring(0,
splitPointBetweenHostPortAndContext) + "/"
+ URLDecoder.decode(liveNode,
"UTF-8").substring(splitPointBetweenHostPortAndContext + 1));
}
}
What is the explanation for this implementation ? Is it possible that
the code filters the live nodes by collection name ?
Best regards,
Anca
Kelkoo SAS
Société par Actions Simplifiée
Au capital de € 4.168.964,30
Siège social : 8, rue du Sentier 75002 Paris
425 093 069 RCS Paris
Ce message et les pièces jointes sont confidentiels et établis à l'attention exclusive de leurs destinataires. Si vous n'êtes pas le destinataire de ce message, merci de le détruire et d'en avertir l'expéditeur.