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

Creating a core should prevent more than one thread from creating a core of the same name at once.

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Implemented
    • Affects Version/s: 4.1, 6.0
    • Fix Version/s: 4.3, 6.0
    • Component/s: None
    • Labels:
      None

      Description

      This hasn't been an issue so far since cores are created at startup. But in the lots of cores case (see SOLR-1293) the probability that more than one thread will attempt to create a core of the same name is vastly greater. We need to block other threads from creating a core if the core is already being created in a different thread.

      Once the core is created, the blocked thread should pick up the newly-created core rather than create it again.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                erickerickson Erick Erickson
                Reporter:
                erickerickson Erick Erickson
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: