Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6D33FD26E for ; Tue, 1 Jan 2013 01:07:25 +0000 (UTC) Received: (qmail 86273 invoked by uid 500); 1 Jan 2013 01:07:22 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 86190 invoked by uid 500); 1 Jan 2013 01:07:22 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 86138 invoked by uid 99); 1 Jan 2013 01:07:22 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Jan 2013 01:07:22 +0000 Date: Tue, 1 Jan 2013 01:07:22 +0000 (UTC) From: "Hoss Man (JIRA)" To: dev@lucene.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Assigned] (SOLR-656) better error message when "data/index" is completely empty MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SOLR-656?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Hoss Man reassigned SOLR-656: ----------------------------- Assignee: Hoss Man > better error message when "data/index" is completely empty > ---------------------------------------------------------- > > Key: SOLR-656 > URL: https://issues.apache.org/jira/browse/SOLR-656 > Project: Solr > Issue Type: Wish > Reporter: Hoss Man > Assignee: Hoss Man > Fix For: 4.2, 5.0 > > Attachments: SOLR-656.patch, SOLR-656-rmdir.patch, SOLR-656-rmdir.patch > > > Solr's normal behavior is to create an "index" dire in the dataDir if one does not already exist, but if "index" does exist it is used as is, warts and all ... if the index is corrupt in some way, and Solr can't create an IndexWriter or IndexReader that error is propagated up to the user. > I don't think this should change: Solr shouldn't attempt to do anything special if there is a low level problem with the index, but something that i've seen happen more then a few times is that people unwittingly "rm index/*" when they should "run -r index" and as a result Solr+Lucene gives them an error instead of just giving them an empty index > when checking if an existing index dir exists, it would probably be worth while to add a little one line sanity test that it contains some files, and log a warning. -- 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