Solr
  1. Solr
  2. SOLR-6101

Shard splitting doesn't work in legacyCloud=false mode

    Details

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

      Description

      When we invoke splitshard Collection API against a cluster with legacyCloud=false, we get the following errors:

      2014-05-15 21:07:58,986 [Overseer-163819091268403216-ec2-xxxxx.compute-1.amazonaws.com:8986_solr-n_0000000051] ERROR solr.cloud.OverseerCollectionProcessor  - Collection splitshard of splitshard failed:org.apache.solr.common.SolrException: Could not find coreNodeName
              at org.apache.solr.cloud.OverseerCollectionProcessor.waitForCoreNodeName(OverseerCollectionProcessor.java:1504)
              at org.apache.solr.cloud.OverseerCollectionProcessor.splitShard(OverseerCollectionProcessor.java:1255)
              at org.apache.solr.cloud.OverseerCollectionProcessor.processMessage(OverseerCollectionProcessor.java:472)
              at org.apache.solr.cloud.OverseerCollectionProcessor.run(OverseerCollectionProcessor.java:248)
              at java.lang.Thread.run(Thread.java:745)
      
      2014-05-15 21:07:59,003 [Overseer-163819091268403216-ec2-xxxxxxx.compute-1.amazonaws.com:8986_solr-n_0000000051] INFO  solr.cloud.OverseerCollectionProcessor  - Overseer Collection Processor: Message id:/overseer/collection-queue-work/qn-0000000018 complete, response:{success={null={responseHeader={status=0,QTime=1}},null={responseHeader={status=0,QTime=1}}},split117278106116750={responseHeader={status=0,QTime=0},STATUS=failed,Response=Error CREATEing SolrCore '3M_shard1_1_replica1': non legacy mode coreNodeName missing shard=shard1_1&name=3M_shard1_1_replica1&action=CREATE&collection=3M&wt=javabin&qt=/admin/cores&async=split117278106116750&version=2},Operation splitshard caused exception:=org.apache.solr.common.SolrException: Could not find coreNodeName,exception={msg=Could not find coreNodeName,rspCode=500}}
      

      The sub-shard replica (leader) creation fails due to:

      {
      responseHeader: {
      status: 0,
      QTime: 0
      },
      STATUS: "failed",
      Response: "Error CREATEing SolrCore '3M_shard1_0_replica1': non legacy mode coreNodeName missing shard=shard1_0&name=3M_shard1_0_replica1&action=CREATE&collection=3M&wt=javabin&qt=/admin/cores&async=split117278099904930&version=2"
      }
      
      1. SOLR-6101.patch
        10 kB
        Shalin Shekhar Mangar

        Activity

        Hide
        Shalin Shekhar Mangar added a comment -

        Changes:

        1. ShardSplitTest switches to using legacyCloud=false randomly
        2. Shard splitting uses addReplica API to create replicas instead of using core admin create API directly. I had to introduce a wait loop for sub-shard to be created by overseer before we can call addReplica.
        Show
        Shalin Shekhar Mangar added a comment - Changes: ShardSplitTest switches to using legacyCloud=false randomly Shard splitting uses addReplica API to create replicas instead of using core admin create API directly. I had to introduce a wait loop for sub-shard to be created by overseer before we can call addReplica.
        Hide
        ASF subversion and git services added a comment -

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

        SOLR-6101: Shard splitting doesn't work when legacyCloud=false is set in cluster properties

        Show
        ASF subversion and git services added a comment - Commit 1596828 from shalin@apache.org in branch 'dev/trunk' [ https://svn.apache.org/r1596828 ] SOLR-6101 : Shard splitting doesn't work when legacyCloud=false is set in cluster properties
        Hide
        ASF subversion and git services added a comment -

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

        SOLR-6101: Shard splitting doesn't work when legacyCloud=false is set in cluster properties

        Show
        ASF subversion and git services added a comment - Commit 1596830 from shalin@apache.org in branch 'dev/branches/branch_4x' [ https://svn.apache.org/r1596830 ] SOLR-6101 : Shard splitting 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