lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anca Kopetz <anca.kop...@kelkoo.com>
Subject Problem with CoreAdminRequest/GET_CORE_STATUS in SolrCloud
Date Wed, 03 Jul 2013 07:28:17 GMT
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.

Mime
View raw message