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

CoreAdminHandler#handleCreateAction gets a SolrCore and does not close it in SolrCloud mode when a core with the same name already exists.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.2.1, 4.3, 6.0
    • Component/s: SolrCloud
    • Labels:
      None

      Description

            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.");
              }
            }
      

        Attachments

          Activity

            People

            • Assignee:
              markrmiller@gmail.com Mark Miller
              Reporter:
              markrmiller@gmail.com Mark Miller
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: