[ https://issues.apache.org/jira/browse/SOLR-4013?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13561578#comment-13561578 ]
Erick Erickson commented on SOLR-4013: -------------------------------------- I think I've already done this in SOLR-4196 which hasn't been committed yet, I need to verify. > Creating a core should prevent more than one thread from creating a core of > the same name at once. > -------------------------------------------------------------------------------------------------- > > Key: SOLR-4013 > URL: https://issues.apache.org/jira/browse/SOLR-4013 > Project: Solr > Issue Type: Improvement > Affects Versions: 4.1, 5.0 > Reporter: Erick Erickson > Assignee: Erick Erickson > Priority: Minor > Fix For: 4.2, 5.0 > > > 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. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org