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, 5.0
    • 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

          Noble Paul created issue -
          Noble Paul made changes -
          Field Original Value New Value
          Link This issue is depended upon by SOLR-5311 [ SOLR-5311 ]
          Noble Paul made changes -
          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=REMOVENODE&collection=coll1&shard=shard1&replica=core_node3


          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=REMOVEREPLICA&collection=coll1&shard=shard1&replica=core_node3


          Noble Paul made changes -
          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=REMOVEREPLICA&collection=coll1&shard=shard1&replica=core_node3


          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=REMOVEREPLICA&collection=coll1&shard=shard1&replica=core_node3



          Noble Paul made changes -
          Link This issue relates to SOLR-5312 [ SOLR-5312 ]
          Noble Paul made changes -
          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=REMOVEREPLICA&collection=coll1&shard=shard1&replica=core_node3



          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
          Noble Paul made changes -
          Attachment SOLR-5310.patch [ 12607961 ]
          Noble Paul made changes -
          Attachment SOLR-5310-1.patch [ 12607989 ]
          Noble Paul made changes -
          Attachment SOLR-5310-1.patch [ 12607989 ]
          Noble Paul made changes -
          Attachment SOLR-5310.patch [ 12607993 ]
          Noble Paul made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Fix Version/s 4.6 [ 12325000 ]
          Fix Version/s 5.0 [ 12321664 ]
          Resolution Fixed [ 1 ]
          Shalin Shekhar Mangar made changes -
          Link This issue is duplicated by SOLR-5131 [ SOLR-5131 ]

            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