Lucene - Core
  1. Lucene - Core
  2. LUCENE-2505

The system cannot find the file specified - _0.fdt

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Incomplete
    • Affects Version/s: 2.4.1
    • Fix Version/s: None
    • Component/s: core/index
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      Hi,
      I am using Lucene version 2.4.1 and while i indexing my files i got following exception.
      i set indexwriter as following..

      Directory lucDirectory = FSDirectory.getDirectory(_sIndexPath);
      lucDirectory.setLockFactory(new SimpleFSLockFactory(_sIndexPath));
      lucWriter = new IndexWriter(lucDirectory, true, new KeywordAnalyzer(), true);
      lucWriter.setMergeFactor(10);
      lucWriter.setMaxMergeDocs(2147483647);
      lucWriter.setMaxBufferedDocs(10000);
      lucWriter.setRAMBufferSizeMB(32);
      lucWriter.setUseCompoundFile(false);
      I am doing indexing and searching both symultaniously.... and i am getting following exception < the system cannot find the file specified >

      "ERROR Exception while checking size - C:\00scripts\Temp\TempIndex\20104261030775_0.fdt (The system cannot find the file specified)Stacktrace java.io.FileNotFoundException: C:\00scripts\Temp\TempIndex\20104261030775_0.fdt (The system cannot find the file specified) at java.io.RandomAccessFile.open(Native Method) at java.io.RandomAccessFile.<init>(Unknown Source) at org.apache.lucene.store.FSDirectory$FSIndexInput$Descriptor.<init>(Unknown Source) at org.apache.lucene.store.FSDirectory$FSIndexInput.<init>(Unknown Source) at org.apache.lucene.store.FSDirectory.openInput(Unknown Source) at org.apache.lucene.index.FieldsReader.<init>(Unknown Source) at org.apache.lucene.index.SegmentReader.initialize(Unknown Source) at org.apache.lucene.index.SegmentReader.get(Unknown Source) at org.apache.lucene.index.SegmentReader.get(Unknown Source) at org.apache.lucene.index.DirectoryIndexReader$1.doBody(Unknown Source) at org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(Unknown Source) at org.apache.lucene.index.DirectoryIndexReader.open(Unknown Source) at org.apache.lucene.index.IndexReader.open(Unknown Source) at org.apache.lucene.index.IndexReader.open(Unknown Source) at org.apache.lucene.search.IndexSearcher.<init>(Unknown Source) at com..main.apu.d(Unknown Source) at com..main.apu.a(Unknown Source) at com.main.arn.a(Unknown Source) at com.main.abh.b(Unknown Source) at com.main.abh.a(Unknown Source) at com..main.abh.f(Unknown Source) at com.main.eu.run(Unknown Source)"

        Activity

        Hide
        Michael McCandless added a comment -

        Can you post a complete testing (including eg your IndexReader.open call) showing this issue? Is it easily repeated?

        Are you first removing all files in the index directory before creating the writer?

        Show
        Michael McCandless added a comment - Can you post a complete testing (including eg your IndexReader.open call) showing this issue? Is it easily repeated? Are you first removing all files in the index directory before creating the writer?

          People

          • Assignee:
            Unassigned
            Reporter:
            Tej Kiran Sharma
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development