From dev-return-65429-apmail-lucene-dev-archive=lucene.apache.org@lucene.apache.org Fri Feb 25 14:25:05 2011 Return-Path: Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: (qmail 52898 invoked from network); 25 Feb 2011 14:25:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 25 Feb 2011 14:25:05 -0000 Received: (qmail 92276 invoked by uid 500); 25 Feb 2011 14:25:04 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 92084 invoked by uid 500); 25 Feb 2011 14:25:00 -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 92062 invoked by uid 99); 25 Feb 2011 14:24:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Feb 2011 14:24:59 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Feb 2011 14:24:58 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 8CF171B71F2 for ; Fri, 25 Feb 2011 14:24:38 +0000 (UTC) Date: Fri, 25 Feb 2011 14:24:38 +0000 (UTC) From: "Andres Felipe Ospina (JIRA)" To: dev@lucene.apache.org Message-ID: <1433334453.16076.1298643878573.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] Commented: (SOLR-2130) Empty index directory causes FileNotFoundException error when starting in-memory SOLR server (RAMDirectory) 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-2130?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12999366#comment-12999366 ] Andres Felipe Ospina commented on SOLR-2130: -------------------------------------------- Response: attach in the solrconfig.xml > Empty index directory causes FileNotFoundException error when starting in-memory SOLR server (RAMDirectory) > ----------------------------------------------------------------------------------------------------------- > > Key: SOLR-2130 > URL: https://issues.apache.org/jira/browse/SOLR-2130 > Project: Solr > Issue Type: Bug > Components: clients - java > Affects Versions: 1.4.1 > Environment: Windows XP/Windows 7 > Reporter: Ian Rowland > Attachments: TechSpike.zip > > > When creating an in-memory Solr Server (using RAMDIrectory) if an empty index directory exists when the server is created the following error occurs: > java.lang.RuntimeException: java.io.FileNotFoundException: no segments* file found in org.apache.lucene.store.RAMDirectory@177b093: files: > at org.apache.solr.core.SolrCore.getSearcher(SolrCore.java:1068) > The code expects a segment file to be present - but as it is an in-memory server there isn't one to find and the error occurs. > The workaround is to ensure the directory is deleted before starting the server, but the creation process creates another empty index folder :( -- This message is automatically generated by JIRA. - 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