Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-2130

Empty index directory causes FileNotFoundException error when starting in-memory SOLR server (RAMDirectory)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 1.4.1
    • None
    • clients - java
    • None
    • Windows XP/Windows 7

    Description

      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

      Attachments

        1. TechSpike.zip
          4.68 MB
          Ian Rowland

        Activity

          People

            Unassigned Unassigned
            ianrow Ian Rowland
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: