Solr
  1. Solr
  2. SOLR-5310

Add a collection admin command to remove a replica

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.6, Trunk
    • Component/s: SolrCloud
    • Labels:
      None

      Description

      the only way a replica can removed is by unloading the core .There is no way to remove a replica that is down . So, the clusterstate will have unreferenced nodes if a few nodes go down over time

      We need a cluster admin command to clean that up

      e.g:
      /admin/collections?action=DELETEREPLICA&collection=coll1&shard=shard1&replica=core_node3

      The system would first see if the replica is active. If yes , a core UNLOAD command is fired , which would take care of deleting the replica from the clusterstate as well

      if the state is inactive, then the core or node may be down , in that case the entry is removed from cluster state

      1. SOLR-5310.patch
        28 kB
        Noble Paul
      2. SOLR-5310.patch
        27 kB
        Noble Paul

        Issue Links

          Activity

          Hide
          ASF subversion and git services added a comment -

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

          SOLR-5311 - Avoid registering replicas which are removed , SOLR-5310 -Add a collection admin command to remove a replica

          Show
          ASF subversion and git services added a comment - Commit 1536608 from Noble Paul in branch 'dev/branches/branch_4x' [ https://svn.apache.org/r1536608 ] SOLR-5311 - Avoid registering replicas which are removed , SOLR-5310 -Add a collection admin command to remove a replica
          Hide
          ASF subversion and git services added a comment -

          Commit 1536606 from Noble Paul in branch 'dev/trunk'
          [ https://svn.apache.org/r1536606 ]

          SOLR-5311 - Avoid registering replicas which are removed , SOLR-5310 -Add a collection admin command to remove a replica

          Show
          ASF subversion and git services added a comment - Commit 1536606 from Noble Paul in branch 'dev/trunk' [ https://svn.apache.org/r1536606 ] SOLR-5311 - Avoid registering replicas which are removed , SOLR-5310 -Add a collection admin command to remove a replica
          Hide
          Noble Paul added a comment -

          The testcases still fail occassionally

          Show
          Noble Paul added a comment - The testcases still fail occassionally

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 72h
                72h
                Remaining:
                Remaining Estimate - 72h
                72h
                Logged:
                Time Spent - Not Specified
                Not Specified

                  Development