[ https://issues.apache.org/jira/browse/SOLR-2130?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alexandre Rafalovitch closed SOLR-2130. --------------------------------------- Resolution: Won't Fix This code has been changed multiple times. If the problem still exists in the latest code, a new issue can be created. > 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 was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org