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

ExactStatsCache and LRUStatsCache will throw an NPE when a term is not present on a shard

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 5.0, 5.0.1, 5.1, 5.2, 5.2.1, 5.2.2
    • 5.3
    • None
    • None

    Description

      If a term doesn't exist on a shard ExactStatsCache#getPerShardTermStats throws an NullPointerException.

      Attaching a test and a patch shortly.

      Attachments

        1. SOLR-7756.patch
          4 kB
          Varun Thacker
        2. SOLR-7756.patch
          16 kB
          Varun Thacker
        3. SOLR-7756.patch
          25 kB
          Varun Thacker
        4. SOLR-7756.patch
          28 kB
          Varun Thacker
        5. SOLR-7756.patch
          29 kB
          Varun Thacker
        6. SOLR-7756.patch
          26 kB
          Varun Thacker

        Issue Links

          Activity

            People

              varun Varun Thacker
              varun Varun Thacker
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: