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

The Solr examples can not always be started after being stopped due to race with loading core.


    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.6, 7.0
    • Component/s: None
    • Security Level: Public (Default Security Level. Issues are Public)
    • Labels:


      I'm having trouble when I start up the schemaless example after shutting down.

      I first tracked this down to the fact that the run example tool is getting an error when it tries to create the SolrCore (again, it already exists) and so it deletes the cores instance dir which leads to tlog and index lock errors in Solr.

      The reason it seems to be trying to create the core when it already exists is that the run example tool uses a core status call to check existence and because the core is loading, we don't consider it as existing. I added a check to look for core.properties.

      That seemed to let me start up, but my first requests failed because the core was still loading. It appears CoreContainer#getCore is supposed to be blocking so you don't have this problem, but there must be an issue, because it is not blocking.


        1. 6x failure 0 docs.txt
          47 kB
          Mikhail Khludnev
        2. Lucene-Solr-master-MacOSX #3986 Console [Jenkins].htm
          8.77 MB
          Mikhail Khludnev
        3. SDF init and doFilter in parallel.png
          451 kB
          Mikhail Khludnev
        4. SOLR-9867.patch
          3 kB
          Mikhail Khludnev
        5. SOLR-9867.patch
          2 kB
          Andrey Kudryavtsev
        6. SOLR-9867.patch
          19 kB
          Mikhail Khludnev
        7. SOLR-9867.patch
          23 kB
          Erick Erickson
        8. SOLR-9867.patch
          11 kB
          Mikhail Khludnev
        9. SOLR-9867.patch
          2 kB
          Mark Miller
        10. SOLR-9867.patch
          2 kB
          Mark Miller
        11. SOLR-9867-createCoreContainer-fix.patch
          1 kB
          Mikhail Khludnev
        12. SOLR-9867-ignore-whitespace.patch
          13 kB
          Mikhail Khludnev
        13. SOLR-9867-test.patch
          4 kB
          Mikhail Khludnev
        14. stdout_90
          452 kB
          Erick Erickson

          Issue Links



              • Assignee:
                mkhludnev Mikhail Khludnev
                markrmiller@gmail.com Mark Miller
              • Votes:
                2 Vote for this issue
                13 Start watching this issue


                • Created: