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

Collection in ZK not deleted when all shards has been unloaded

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 4.0-ALPHA
    • 4.0-BETA, 6.0
    • multicore, SolrCloud
    • None
    • Same as SOLR-3561

    Description

      Same scanario as SOLR-3561 - deleting shards/cores using CoreAdmin/UNLOAD command.

      I have noticed that when I have done CoreAdmin/UNLOAD for all shard under a collection, that the collection and all its slices are still present in ZK under /collections. I might be ok since the operation is called UNLOAD, but I basically want to delete an entire collection and all data related to it (including information about it in ZK).

      A delete-collection operation, that also deletes info about the collection under /collections in ZK, would be very nice! Or a delete-shard/core operation and then some nice logic that detects when all shards belonging to a collection has been deleted, and when that has happened deletes info about the collection under /collections in ZK.

      Attachments

        Issue Links

          Activity

            markrmiller@gmail.com Mark Miller added a comment -

            i was going to look at addressing this as part of the collections api issue (for collection delete).

            markrmiller@gmail.com Mark Miller added a comment - i was going to look at addressing this as part of the collections api issue (for collection delete).
            markrmiller@gmail.com Mark Miller added a comment -

            I've add this to the work I did on the collections API - it's needed there for collection removal. Should be committing a first iteration of that soon.

            markrmiller@gmail.com Mark Miller added a comment - I've add this to the work I did on the collections API - it's needed there for collection removal. Should be committing a first iteration of that soon.
            markrmiller@gmail.com Mark Miller added a comment -

            This was added as part of SOLR-3488 - I'll make a changes entry.

            markrmiller@gmail.com Mark Miller added a comment - This was added as part of SOLR-3488 - I'll make a changes entry.
            markrmiller@gmail.com Mark Miller added a comment -

            Thanks Per!

            markrmiller@gmail.com Mark Miller added a comment - Thanks Per!

            hoss20120711-manual-post-40alpha-change

            hossman Chris M. Hostetter added a comment - hoss20120711-manual-post-40alpha-change

            People

              markrmiller@gmail.com Mark Miller
              steff1193 Per Steffensen
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: