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

Exception throws when using collection aliases and ClouldSolrServer

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 4.2
    • Fix Version/s: 4.2
    • Component/s: SolrCloud
    • Labels:
      None

      Description

      [2013-04-16 18:27:18] ERROR org.apache.solr.core.SolrCore - org.apache.solr.common.SolrException: Could not find collection:test_collection
      at org.apache.solr.common.cloud.ClusterState.getCollection(ClusterState.java:136)
      at org.apache.solr.handler.component.HttpShardHandler.addSlices(HttpShardHandler.java:414)
      at org.apache.solr.handler.component.HttpShardHandler.checkDistributed(HttpShardHandler.java:315)
      at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:182)
      at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:135)
      at org.apache.solr.core.SolrCore.execute(SolrCore.java:1797)
      at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:637)
      at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:343)
      at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:141)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
      at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:989)
      at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:579)
      at org.apache.tomcat.util.net.AprEndpoint$SocketWithOptionsProcessor.run(AprEndpoint.java:1763)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:662)

      SolrDispatchFilter#doFilter didn't update collection aliase correctly.
      When using CloudSolrServer client, the core is not null at SolrDispatchFilter.java line 239.
      So ZkStateReader#updateAliases wasn't called.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                mshijie ShiJie Mao
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: