Shalin Shekhar Mangar created SOLR-5550:
-------------------------------------------

             Summary: 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: 5.0, 4.7


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.1.4#6159)

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

Reply via email to