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.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • None
    • 6.6, 7.0
    • None
    • None

    Description

      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.

      Attachments

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

        Issue Links

          Activity

            People

              mkhl Mikhail Khludnev
              markrmiller@gmail.com Mark Miller
              Votes:
              2 Vote for this issue
              Watchers:
              13 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: