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

QueryComponent.mergeIds() unmarshals all docs' sort field values once per doc instead of once per shard

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 4.7
    • 4.7.1, 4.8, 6.0
    • search
    • None

    Description

      SOLR-5354 added unmarshalling of distributed sort field values in QueryComponent.mergeIds(), but incorrectly performs this (unmarshalling all docs' sort field values) for every doc, and stores the result with each doc. This is unnecessary, inefficient, and extremely wasteful of memory.

      In an offline conversation, alexey described the issue to me and located the likely problem, and hossman_lucene@fucit.org located the problem code via inspection.

      This bug is very likely the problem described on the solr-user mailing list here: SolrCloud constantly crashes after upgrading to Solr 4.7

      Attachments

        1. SOLR-5875.patch
          1 kB
          Steven Rowe

        Issue Links

          Activity

            People

              sarowe Steven Rowe
              sarowe Steven Rowe
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: