[
https://issues.apache.org/jira/browse/SOLR-2130?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12915997#action_12915997
]
Hoss Man commented on SOLR-2130:
--------------------------------
Ian: I'm afraid you haven't given enough details for me to really make sense of
this bug.
You've marked it as affecting Solr 1.4.1, but Solr 1.4.1 didn't have any
support for using a RAMDirectory.
On trunk, using the RAMDirectoryFactory with the example configs (which have a
system property setup to override the default DirectoryFactory) I can't trigger
any sort of problem like you describe...
{noformat}
java -Dsolr.directoryFactory=solr.RAMDirectoryFactory -jar start.jar
{noformat}
Can you please clarify how exactly you got the above mentioned error? Are you
really using 1.4.1? Did you write a custom DirectoryFactory? what does your
code look like? can you provide a unit test or specific steps to reproduce this
error?
> 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
>
> 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.ramdirect...@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.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]