Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-2515

SolrQueryIndex blindly executes a 2nd query to check there are no more results

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.11, 1.1.6
    • Fix Version/s: 1.0.12, 1.1.7
    • Component/s: None
    • Labels:
      None

      Description

      SolrQueryIndex#loadDocs doesn't take into account Solr's SolrDocumentList#getNumFound value to check if another query to get further results when the doc queue is empty is needed and blindly executes a second query.
      This is obviously wrong as it wastes time and resources doing an unneeded query to Solr.

        Attachments

          Activity

            People

            • Assignee:
              teofili Tommaso Teofili
              Reporter:
              teofili Tommaso Teofili
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: