lucenenet-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Sayatovic <bsayato...@creditinfonet.com>
Subject What could cause this FileNotFoundException in IndexWriter.Close()?
Date Thu, 15 Nov 2012 14:08:04 GMT
Thought this code base has been running very smooth for over a year, and the Lucene-related
code has been unchanged for months, I've recently encountered the following error *twice*
(note that in this particular environment, the index is stored on a Windows DFS location).
 Note that for this particular environment, there are two load balanced servers sharing the
same index and relying on the locking to block each other for updates.

---------------START--------------------
11/14/2012 2:31:43 PM  Error      0              0a3ee8df-23ed-4509-9c29-79c7d8b323d3    
        System                                 Exception while cleaning up LuceneAgent for
#2; logged and swallowed - System.IO.FileNotFoundException: Could not find file '\\MyDomain\Lucene\_387.cfs'.
File name: '\\MyDomain\Lucene\_387.cfs'
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights,
Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES
secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare
share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare
share)
   at Lucene.Net.Store.SimpleFSDirectory.SimpleFSIndexInput.Descriptor..ctor(FileInfo file,
FileAccess mode) in C:\Users\bsayatovic\Workspace\Local\Lucene.Net\tags\Lucene.Net_2_9_2\src\Lucene.Net\Store\SimpleFSDirectory.cs:line
112
   at Lucene.Net.Store.SimpleFSDirectory.SimpleFSIndexInput..ctor(FileInfo path, Int32 bufferSize,
Int32 chunkSize) in C:\Users\bsayatovic\Workspace\Local\Lucene.Net\tags\Lucene.Net_2_9_2\src\Lucene.Net\Store\SimpleFSDirectory.cs:line
161
   at Lucene.Net.Store.SimpleFSDirectory.OpenInput(String name, Int32 bufferSize) in C:\Users\bsayatovic\Workspace\Local\Lucene.Net\tags\Lucene.Net_2_9_2\src\Lucene.Net\Store\SimpleFSDirectory.cs:line
98
   at Lucene.Net.Index.CompoundFileReader..ctor(Directory dir, String name, Int32 readBufferSize)
in C:\Users\bsayatovic\Workspace\Local\Lucene.Net\tags\Lucene.Net_2_9_2\src\Lucene.Net\Index\CompoundFileReader.cs:line
72
   at Lucene.Net.Index.SegmentReader.CoreReaders..ctor(Directory dir, SegmentInfo si, Int32
readBufferSize, Int32 termsIndexDivisor) in C:\Users\bsayatovic\Workspace\Local\Lucene.Net\tags\Lucene.Net_2_9_2\src\Lucene.Net\Index\SegmentReader.cs:line
116
   at Lucene.Net.Index.SegmentReader.Get(Boolean readOnly, Directory dir, SegmentInfo si,
Int32 readBufferSize, Boolean doOpenStores, Int32 termInfosIndexDivisor) in C:\Users\bsayatovic\Workspace\Local\Lucene.Net\tags\Lucene.Net_2_9_2\src\Lucene.Net\Index\SegmentReader.cs:line
794
   at Lucene.Net.Index.SegmentReader.Get(SegmentInfo si, Int32 readBufferSize, Boolean doOpenStores,
Int32 termInfosIndexDivisor) in C:\Users\bsayatovic\Workspace\Local\Lucene.Net\tags\Lucene.Net_2_9_2\src\Lucene.Net\Index\SegmentReader.cs:line
767
   at Lucene.Net.Index.IndexWriter.ReaderPool.Get(SegmentInfo info, Boolean doOpenStores,
Int32 readBufferSize, Int32 termsIndexDivisor) in C:\Users\bsayatovic\Workspace\Local\Lucene.Net\tags\Lucene.Net_2_9_2\src\Lucene.Net\Index\IndexWriter.cs:line
760
   at Lucene.Net.Index.IndexWriter.ReaderPool.Get(SegmentInfo info, Boolean doOpenStores)
in C:\Users\bsayatovic\Workspace\Local\Lucene.Net\tags\Lucene.Net_2_9_2\src\Lucene.Net\Index\IndexWriter.cs:line
726
   at Lucene.Net.Index.DocumentsWriter.ApplyDeletes(SegmentInfos infos) in C:\Users\bsayatovic\Workspace\Local\Lucene.Net\tags\Lucene.Net_2_9_2\src\Lucene.Net\Index\DocumentsWriter.cs:line
1226
   at Lucene.Net.Index.IndexWriter.ApplyDeletes() in C:\Users\bsayatovic\Workspace\Local\Lucene.Net\tags\Lucene.Net_2_9_2\src\Lucene.Net\Index\IndexWriter.cs:line
6076
   at Lucene.Net.Index.IndexWriter.DoFlushInternal(Boolean flushDocStores, Boolean flushDeletes)
in C:\Users\bsayatovic\Workspace\Local\Lucene.Net\tags\Lucene.Net_2_9_2\src\Lucene.Net\Index\IndexWriter.cs:line
5068
   at Lucene.Net.Index.IndexWriter.DoFlush(Boolean flushDocStores, Boolean flushDeletes) in
C:\Users\bsayatovic\Workspace\Local\Lucene.Net\tags\Lucene.Net_2_9_2\src\Lucene.Net\Index\IndexWriter.cs:line
4895
   at Lucene.Net.Index.IndexWriter.Flush(Boolean triggerMerge, Boolean flushDocStores, Boolean
flushDeletes) in C:\Users\bsayatovic\Workspace\Local\Lucene.Net\tags\Lucene.Net_2_9_2\src\Lucene.Net\Index\IndexWriter.cs:line
4882
   at Lucene.Net.Index.IndexWriter.CloseInternal(Boolean waitForMerges) in C:\Users\bsayatovic\Workspace\Local\Lucene.Net\tags\Lucene.Net_2_9_2\src\Lucene.Net\Index\IndexWriter.cs:line
2524
   at Lucene.Net.Index.IndexWriter.Close(Boolean waitForMerges) in C:\Users\bsayatovic\Workspace\Local\Lucene.Net\tags\Lucene.Net_2_9_2\src\Lucene.Net\Index\IndexWriter.cs:line
2474
   at Lucene.Net.Index.IndexWriter.Close() in C:\Users\bsayatovic\Workspace\Local\Lucene.Net\tags\Lucene.Net_2_9_2\src\Lucene.Net\Index\IndexWriter.cs:line
2436
   at ...

Brian Sayatovic
Senior Software Architect
CIN Legal Data Services, a CINgroup company

866-218-1003 toll-free ext. 8936
937-235-8936 office
www.cinlegal.com<http://www.cinlegal.com/>
www.cingroup.com<http://www.cingroup.com/>

This message may contain confidential/proprietary information from the CINgroup or its subsidiaries.
If you are not an intended recipient, please refrain from the disclosure, copying, distribution
or use of this information. All such unauthorized actions are strictly prohibited. If you
have received this transmission in error, please notify the sender by e-mail and delete all
copies of this material from any computer.


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message