You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Mark Bennett (JIRA)" <ji...@apache.org> on 2013/02/11 20:03:12 UTC

[jira] [Created] (SOLR-4433) Developer Curb Appeal: automatically cleanup, or at least offer to cleanup, any docs from template index directory

Mark Bennett created SOLR-4433:
----------------------------------

             Summary: Developer Curb Appeal: automatically cleanup, or at least offer to cleanup, any docs from template index directory
                 Key: SOLR-4433
                 URL: https://issues.apache.org/jira/browse/SOLR-4433
             Project: Solr
          Issue Type: Improvement
          Components: SolrCloud
    Affects Versions: 4.1
            Reporter: Mark Bennett
             Fix For: 4.2


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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org