[ 
https://issues.apache.org/jira/browse/SOLR-4578?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13601994#comment-13601994
 ] 

Mark Miller commented on SOLR-4578:
-----------------------------------

Should be 

{code}
      if (coreContainer.isZooKeeperAware()) {
        if (coreContainer.getCoreNames().contains(name)) {
          log.info("Re-creating a core with existing name is not allowed in 
cloud mode");
          throw new SolrException(SolrException.ErrorCode.BAD_REQUEST,
              "Core with name '" + name + "' already exists.");
        }
      }
{code}
                
> CoreAdminHandler#handleCreateAction gets a SolrCore and does not close it in 
> SolrCloud mode.
> --------------------------------------------------------------------------------------------
>
>                 Key: SOLR-4578
>                 URL: https://issues.apache.org/jira/browse/SOLR-4578
>             Project: Solr
>          Issue Type: Bug
>            Reporter: Mark Miller
>            Priority: Minor
>
> {noformat}
>       if (coreContainer.getZkController() != null) {
>         if (coreContainer.getCore(name) != null) {
>           log.info("Re-creating a core with existing name is not allowed in 
> cloud mode");
>           throw new SolrException(SolrException.ErrorCode.BAD_REQUEST,
>               "Core with name '" + name + "' already exists.");
>         }
>       }
> {noformat}

--
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

Reply via email to