Details

    • Type: Sub-task Sub-task
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.5, 5.0
    • Component/s: SolrCloud
    • Labels:
      None

      Description

      Custom sharding requires a CREATESHARD/DELETESHARD commands

      It may not be applicable to hash based sharding

        Activity

        Hide
        Shalin Shekhar Mangar added a comment -

        The "deleteShard" part is taken care of by SOLR-4693. It allows you to delete shards that have a null range (i.e. created for custom sharding) as well as those whose state is inactive.

        Show
        Shalin Shekhar Mangar added a comment - The "deleteShard" part is taken care of by SOLR-4693 . It allows you to delete shards that have a null range (i.e. created for custom sharding) as well as those whose state is inactive.
        Hide
        ASF subversion and git services added a comment -
        Show
        ASF subversion and git services added a comment - Commit 1508968 from Noble Paul in branch 'dev/trunk' [ https://svn.apache.org/r1508968 ] SOLR-4221 SOLR-4808 SOLR-5006 SOLR-5017 SOLR-4222
        Hide
        ASF subversion and git services added a comment -

        Commit 1508981 from Noble Paul in branch 'dev/branches/branch_4x'
        [ https://svn.apache.org/r1508981 ]

        SOLR-4221 SOLR-4808 SOLR-5006 SOLR-5017 SOLR-4222

        Show
        ASF subversion and git services added a comment - Commit 1508981 from Noble Paul in branch 'dev/branches/branch_4x' [ https://svn.apache.org/r1508981 ] SOLR-4221 SOLR-4808 SOLR-5006 SOLR-5017 SOLR-4222
        Hide
        Noble Paul added a comment -

        example
        http://host:port/solr/admin/collections?action=CREATESHARD&collection=collName&shard=apr13

        The replicationFactor and maxShardsPerNode are read from the collection properties. This would require the cluster to have enough nodes for creating the new shards according to replicationFactor and maxShardsPerNode . If there aren't enough nodes the command would fail

        Show
        Noble Paul added a comment - example http://host:port/solr/admin/collections?action=CREATESHARD&collection=collName&shard=apr13 The replicationFactor and maxShardsPerNode are read from the collection properties. This would require the cluster to have enough nodes for creating the new shards according to replicationFactor and maxShardsPerNode . If there aren't enough nodes the command would fail
        Hide
        Jack Krupansky added a comment -

        The OverseerCollectionProcessor#createShard method supports the createNodeSet parameter, but the CollectionsHandler#handleCreateShard method does not copy that parameter from the request. Is this an oversight and intended feature for 4.5, or dead code, or just for future enhancement?

        Also, action=CREATESHARD and action=DELETESHARD need to be added to the Solr refGuide.

        Show
        Jack Krupansky added a comment - The OverseerCollectionProcessor#createShard method supports the createNodeSet parameter, but the CollectionsHandler#handleCreateShard method does not copy that parameter from the request. Is this an oversight and intended feature for 4.5, or dead code, or just for future enhancement? Also, action=CREATESHARD and action=DELETESHARD need to be added to the Solr refGuide.
        Hide
        Noble Paul added a comment -

        Yes, It's an omission. Thanks for pointing it out

        Show
        Noble Paul added a comment - Yes, It's an omission. Thanks for pointing it out
        Hide
        Noble Paul added a comment -

        Let's open a separate issue for the ref guide

        Show
        Noble Paul added a comment - Let's open a separate issue for the ref guide
        Hide
        Adrien Grand added a comment -

        4.5 release -> bulk close

        Show
        Adrien Grand added a comment - 4.5 release -> bulk close

          People

          • Assignee:
            Noble Paul
            Reporter:
            Noble Paul
          • Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development