Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-5550

shards.info is not returned in case of short circuited distributed query

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 4.6
    • 4.7.1, 4.8, 6.0
    • SolrCloud
    • None

    Description

      Distributed queries which are short circuited and executed locally do not return a shards.info section even when requested.

      Steps to reproduce:

      1. cd solr; ant example; cp -r example example2
      2. cd example; java -Dbootstrap_confdir=./solr/collection1/conf -Dcollection.configName=conf1 -DzkRun -DnumShards=2 -jar start.jar
      3. cd example2; java -Djetty.port=7574 -DzkHost=localhost:9983 -jar start.jar
      4. curl http://localhost:8983/solr/admin/collections?action=CREATE&collection=test1&name=test1&numShards=2&collection.configName=conf1&maxShardsPerNode=3
      5. Add two docs:
        <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>
        
      6. curl http://localhost:8983/admin/cores?name=test1_shard2_replica2&collection=test1&shard=shard2
      7. curl http://localhost:8983/solr/test1_shard2_replica1/select?_route_=b!&fl=*&start=0&q=*:*&shards.info=true&collection=test1&rows=10
      8. The above will not return shards.info
      9. curl http://localhost:7574/solr/test1/select?_route_=b!&fl=*&start=0&q=*:*&shards.info=true&collection=test1&rows=10
      10. The above will return shards.info

      Attachments

        1. SOLR-5550.patch
          10 kB
          Shalin Shekhar Mangar
        2. SOLR-5550.patch
          4 kB
          Timothy Potter

        Issue Links

          Activity

            People

              shalin Shalin Shekhar Mangar
              shalin Shalin Shekhar Mangar
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: