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 Bug
    • Status: Closed
    • Priority: Minor 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.");
              }
            }
      

        Activity

        Hide
        Mark Miller added a comment -

        Should be

              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.");
                }
              }
        
        Show
        Mark Miller added a comment - Should be 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." ); } }
        Hide
        Commit Tag Bot added a comment -

        [trunk commit] Mark Robert Miller
        http://svn.apache.org/viewvc?view=revision&revision=1456596

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

        Show
        Commit Tag Bot added a comment - [trunk commit] Mark Robert Miller http://svn.apache.org/viewvc?view=revision&revision=1456596 SOLR-4578 : CoreAdminHandler#handleCreateAction gets a SolrCore and does not close it in SolrCloud mode when a core with the same name already exists.
        Hide
        Commit Tag Bot added a comment -

        [branch_4x commit] Mark Robert Miller
        http://svn.apache.org/viewvc?view=revision&revision=1456606

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

        Show
        Commit Tag Bot added a comment - [branch_4x commit] Mark Robert Miller http://svn.apache.org/viewvc?view=revision&revision=1456606 SOLR-4578 : CoreAdminHandler#handleCreateAction gets a SolrCore and does not close it in SolrCloud mode when a core with the same name already exists.
        Hide
        Commit Tag Bot added a comment -

        [branch_4x commit] Mark Robert Miller
        http://svn.apache.org/viewvc?view=revision&revision=1458100

        SOLR-4578: Move CHANGES entry.

        Show
        Commit Tag Bot added a comment - [branch_4x commit] Mark Robert Miller http://svn.apache.org/viewvc?view=revision&revision=1458100 SOLR-4578 : Move CHANGES entry.
        Hide
        Commit Tag Bot added a comment -

        [trunk commit] Mark Robert Miller
        http://svn.apache.org/viewvc?view=revision&revision=1458099

        SOLR-4578: Move CHANGES entry.

        Show
        Commit Tag Bot added a comment - [trunk commit] Mark Robert Miller http://svn.apache.org/viewvc?view=revision&revision=1458099 SOLR-4578 : Move CHANGES entry.
        Hide
        Uwe Schindler added a comment -

        Closed after release.

        Show
        Uwe Schindler added a comment - Closed after release.

          People

          • Assignee:
            Mark Miller
            Reporter:
            Mark Miller
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development