Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-5310

Add a collection admin command to remove a replica

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 4.6, 6.0
    • SolrCloud
    • 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

      Attachments

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

        Issue Links

          Activity

            People

              noble.paul Noble Paul
              noble.paul 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