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

Add options to remove instance dir or data dir on core reload.

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 4.0-ALPHA
    • Fix Version/s: 4.0-BETA
    • Component/s: multicore, SolrCloud
    • Labels:
      None
    • Environment:

      Same as SOLR-3561

      Description

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

      I have noticed that when doing CoreAdmin/UNLOAD, the data-folder on disk belonging to the shard/core that has been unloaded is not deleted. I might be ok since the operation is called UNLOAD, but I basically want to delete a shard/core and all data related to it (including its data-folder).

      Dont we have a delete shard/core operation? Or what do I need to do? Do I have to manually delete the data-folder myself after having unloaded?

      A delete-shard/core or even a delete-collection operation would be very nice!

        Issue Links

          Activity

          Hide
          hossman Hoss Man added a comment -

          hoss20120711-manual-post-40alpha-change

          Show
          hossman Hoss Man added a comment - hoss20120711-manual-post-40alpha-change
          Hide
          markrmiller@gmail.com Mark Miller added a comment -

          Thanks Per!

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

          This was completed as part of SOLR-3488 - I'll add a changes entry.

          Show
          markrmiller@gmail.com Mark Miller added a comment - This was completed as part of SOLR-3488 - I'll add a changes entry.
          Hide
          steff1193 Per Steffensen added a comment -

          Nice to hear that you are working on a Collection API for dealing with this kind of stuff. Today in our application we are creating collections by creating numerous individual shards across our cluster of Solr nodes. It would be nice with some API support doing that, especially when we want to delete. Unfortunately we see some problems when we just unload all shards in a collection, in order to "delete" that collection - see SOLR-3561. But I will be watching SOLR-3488. Thanks alot!

          Show
          steff1193 Per Steffensen added a comment - Nice to hear that you are working on a Collection API for dealing with this kind of stuff. Today in our application we are creating collections by creating numerous individual shards across our cluster of Solr nodes. It would be nice with some API support doing that, especially when we want to delete. Unfortunately we see some problems when we just unload all shards in a collection, in order to "delete" that collection - see SOLR-3561 . But I will be watching SOLR-3488 . Thanks alot!
          Hide
          markrmiller@gmail.com Mark Miller added a comment -

          ill add an option both for the instanceDir and dataDir

          Show
          markrmiller@gmail.com Mark Miller added a comment - ill add an option both for the instanceDir and dataDir
          Hide
          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.

          Show
          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.

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development