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

SOLR does not start up when no cores are defined

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 3.6
    • 3.6.1, 4.0-ALPHA
    • search
    • None
    • All environments

    Description

      Since version 3.6.0, Solr does not start up when no cores are defined in solr.xml. The problematic code is in CoresContainer.java, lines 171-173.

      org.apache.solr.common.SolrException: No cores were created, please check the logs for errors
      at org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:172) ~[solr-core-3.6.0.jar:3.6.0 1310449 - rmuir - 2012-04-06 11:34:38]
      at org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:96) ~[solr-core-3.6.0.jar:3.6.0 1310449 - rmuir - 2012-04-06 11:34:38]
      ...

      In our case, this is however a valid situation, because we create the cores programatically by calling the webservices to register new cores. The server is initially started with no cores defined, and depending on the configuration of our application, cores are then created dynamically.

      For the time being, we have to stick with version 3.5, which did not have this problem (or feature).

      Attachments

        1. SOLR-3477.patch
          3 kB
          Tomas Eduardo Fernandez Lobbe
        2. SOLR-3477-3_6.patch
          4 kB
          Tomas Eduardo Fernandez Lobbe
        3. SOLR-3477-3_6.patch
          5 kB
          Jan Høydahl

        Issue Links

          Activity

            People

              teofili Tommaso Teofili
              wastl Sebastian Schaffert
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: