You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "David Smiley (JIRA)" <ji...@apache.org> on 2014/03/16 05:52:13 UTC

[jira] [Updated] (SOLR-5550) shards.info is not returned in case of short circuited distributed query

     [ https://issues.apache.org/jira/browse/SOLR-5550?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Smiley updated SOLR-5550:
-------------------------------

    Fix Version/s:     (was: 4.7)
                   4.8

> shards.info is not returned in case of short circuited distributed query
> ------------------------------------------------------------------------
>
>                 Key: SOLR-5550
>                 URL: https://issues.apache.org/jira/browse/SOLR-5550
>             Project: Solr
>          Issue Type: Bug
>          Components: SolrCloud
>    Affects Versions: 4.6
>            Reporter: Shalin Shekhar Mangar
>            Assignee: Shalin Shekhar Mangar
>            Priority: Minor
>             Fix For: 4.8, 5.0
>
>         Attachments: SOLR-5550.patch
>
>
> Distributed queries which are short circuited and executed locally do not return a shards.info section even when requested.
> Steps to reproduce:
> # cd solr; ant example; cp -r example example2
> # cd example; java -Dbootstrap_confdir=./solr/collection1/conf -Dcollection.configName=conf1 -DzkRun -DnumShards=2 -jar start.jar
> # cd example2; java -Djetty.port=7574 -DzkHost=localhost:9983 -jar start.jar
> # curl http://localhost:8983/solr/admin/collections?action=CREATE&collection=test1&name=test1&numShards=2&collection.configName=conf1&maxShardsPerNode=3
> # Add two docs:
> {code}
> <add>
>   <doc>
>     <field name="id">a!1</field>
>     <field name="name">xyz</field>
>     <field name="price">2.00</field>
>   </doc>
>   <doc>
>     <field name="id">b!1</field>
>     <field name="name">abc</field>
>     <field name="price">5.00</field>
>   </doc>
> </add>
> {code}
> # curl http://localhost:8983/admin/cores?name=test1_shard2_replica2&collection=test1&shard=shard2
> # curl http://localhost:8983/solr/test1_shard2_replica1/select?_route_=b!&fl=*&start=0&q=*:*&shards.info=true&collection=test1&rows=10
> # The above will not return shards.info
> # curl http://localhost:7574/solr/test1/select?_route_=b!&fl=*&start=0&q=*:*&shards.info=true&collection=test1&rows=10
> # The above will return shards.info



--
This message was sent by Atlassian JIRA
(v6.2#6252)

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