Solr
  1. Solr
  2. SOLR-6197

The migrate collection API fails with legacyMode=false

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.8.1, 4.9
    • Fix Version/s: 4.10, Trunk
    • Component/s: SolrCloud
    • Labels:
      None

      Description

      The migrate collection API fails trying to create a replica of the temp collection. It should use the addreplica API instead of core admin create.

      Relevant error from the API response:

      org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException:Error CREATEing SolrCore 'split_shard1_0_0_temp_shard1_shard1_replica2': non legacy mode coreNodeName missing shard=shard1&name=split_shard1_0_0_temp_shard1_shard1_replica2&action=CREATE&collection=split_shard1_0_0_temp_shard1&wt=javabin&qt=/admin/cores&version=2

      1. SOLR-6197.patch
        4 kB
        Shalin Shekhar Mangar

        Activity

        Hide
        Shalin Shekhar Mangar added a comment -

        Fix + test.

        Show
        Shalin Shekhar Mangar added a comment - Fix + test.
        Hide
        ASF subversion and git services added a comment -

        Commit 1605362 from shalin@apache.org in branch 'dev/trunk'
        [ https://svn.apache.org/r1605362 ]

        SOLR-6197: The MIGRATE collection API doesn't work when legacyCloud=false is set in cluster properties

        Show
        ASF subversion and git services added a comment - Commit 1605362 from shalin@apache.org in branch 'dev/trunk' [ https://svn.apache.org/r1605362 ] SOLR-6197 : The MIGRATE collection API doesn't work when legacyCloud=false is set in cluster properties
        Hide
        ASF subversion and git services added a comment -

        Commit 1605366 from shalin@apache.org in branch 'dev/branches/branch_4x'
        [ https://svn.apache.org/r1605366 ]

        SOLR-6197: The MIGRATE collection API doesn't work when legacyCloud=false is set in cluster properties

        Show
        ASF subversion and git services added a comment - Commit 1605366 from shalin@apache.org in branch 'dev/branches/branch_4x' [ https://svn.apache.org/r1605366 ] SOLR-6197 : The MIGRATE collection API doesn't work when legacyCloud=false is set in cluster properties

          People

          • Assignee:
            Shalin Shekhar Mangar
            Reporter:
            Shalin Shekhar Mangar
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development