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

Developer Curb Appeal: automatically cleanup, or at least offer to cleanup, any docs from template index directory

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 4.1
    • None
    • SolrCloud
    • None

    Description

      When setting up SolrCloud, we have the admin make a copy of example directory into the shard template.

      But we issue the warning "Make sure there are no documents present"

      Doc reference:
      http://lucidworks.lucidimagination.com/display/solr/Getting+Started+with+SolrCloud
      Red box: "... On the other hand, make sure also that there are no documents in the example directory before making copies."

      We don't say what happens if the data directory is not empty? If this is really bad, then I'm not sure if we should just automatically nuke it, or prompt them, or give a warning and exit, or maybe a command line switch, OR maybe just move it out of the way, maybe renaming it to something with a ".NON-CLOUD-INDEX".

      There should be an opportunity to do this. When SolrCloud initializes a new shard node, I believe it knows that this is the first time (based on whether ZooKeeper has persisted this node's shard assignment, etc.)

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mbennett Mark Bennett
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: