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

NullPointerException at ExactSharedStatsCache.getPerShardTermStats

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • None
    • None
    • None
    • None

    Description

      I'm enabling <statsCache class="org.apache.solr.search.stats.ExactSharedStatsCache"/> at the simple SolrCloud setup and got:

      Caused by: org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: Error from server at http://...:8983/solr/V..._shard2_replica2: java.lang.NullPointerException
      at org.apache.solr.search.stats.ExactSharedStatsCache.getPerShardTermStats(ExactSharedStatsCache.java:76)
      at org.apache.solr.search.stats.ExactStatsCache.sendGlobalStats(ExactStatsCache.java:233)
      at org.apache.solr.handler.component.QueryComponent.createMainQuery(QueryComponent.java:930)
      at org.apache.solr.handler.component.QueryComponent.regularDistributedProcess(QueryComponent.java:726)
      at org.apache.solr.handler.component.QueryComponent.distributedProcess(QueryComponent.java:679)
      at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:345)
      at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:166)
      at org.apache.solr.core.SolrCore.execute(SolrCore.java:2299)

      Is there any clue? It seems like swithing to LRUStatsCache helps, but why so?

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mkhl Mikhail Khludnev
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: