lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Isabelle Giguere (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SOLR-11210) Confusing name for aliases in ZK
Date Mon, 07 Aug 2017 22:07:00 GMT
Isabelle Giguere created SOLR-11210:
---------------------------------------

             Summary: Confusing name for aliases in ZK
                 Key: SOLR-11210
                 URL: https://issues.apache.org/jira/browse/SOLR-11210
             Project: Solr
          Issue Type: Bug
      Security Level: Public (Default Security Level. Issues are Public)
    Affects Versions: 6.6
            Reporter: Isabelle Giguere
            Priority: Minor


There's a confusing discrepancy between the aliases information stored in Zookeeper and the
information returned by LISTALIASES.

http://localhost:8983/solr/admin/collections?action=CREATEALIAS&name=alias1&collections=collection0,collection1

http://localhost:8983/solr/admin/collections?action=LISTALIASES&wt=json
{"responseHeader":{"status":0,"QTime":0},"aliases":{"all":"alias1":"collection0,collection1"}}

zkCLI -zkHost localhost:2181/solr -cmd getfile /aliases.json /aliases_ZK_output.json
{"collection":{
    "alias1":"collection0,collection1"}}

The information stored in ZK looks like a NamedList named "collection", which doesn't make
any sense.  It should be named "aliases".

org.apache.solr.handler.admin.CollectionsHandler.CollectionOperation.LISTALIASES_OP adds the
value of the ZK response to a NamedList called "aliases", so it doesn't show outside ZK.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message