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.

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments


    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.6, 7.0
    • Component/s: None
    • 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. SOLR-9867.patch
          3 kB
          Mikhail Khludnev
        3. SOLR-9867.patch
          2 kB
          Andrey Kudryavtsev
        4. SOLR-9867-createCoreContainer-fix.patch
          1 kB
          Mikhail Khludnev
        5. Lucene-Solr-master-MacOSX #3986 Console [Jenkins].htm
          8.77 MB
          Mikhail Khludnev
        6. stdout_90
          452 kB
          Erick Erickson
        7. SOLR-9867.patch
          19 kB
          Mikhail Khludnev
        8. SOLR-9867-ignore-whitespace.patch
          13 kB
          Mikhail Khludnev
        9. SOLR-9867.patch
          23 kB
          Erick Erickson
        10. SOLR-9867.patch
          11 kB
          Mikhail Khludnev
        11. SOLR-9867-test.patch
          4 kB
          Mikhail Khludnev
        12. SDF init and doFilter in parallel.png
          451 kB
          Mikhail Khludnev
        13. SOLR-9867.patch
          2 kB
          Mark Miller
        14. SOLR-9867.patch
          2 kB
          Mark Miller

        Issue Links



            • Assignee:
              mkhl Mikhail Khludnev
              markrmiller@gmail.com Mark Miller


              • Created:

                Issue deployment