]
Paul Nardone updated ISPN-690:
------------------------------
Attachment: InfinispanLuceneTest.java
java.io.FileNotFoundException during Directory.copy
---------------------------------------------------
Key: ISPN-690
URL:
https://jira.jboss.org/browse/ISPN-690
Project: Infinispan
Issue Type: Bug
Components: Lucene Directory
Affects Versions: 4.1.0.Final, 4.2.0.ALPHA2
Environment: Win32 JRE 1.6.0_21-b07
Reporter: Paul Nardone
Assignee: Manik Surtani
Attachments: InfinispanLuceneTest.java
I've been experiencing this error in an application I am developing and finally
tracked it down to a more simple case
The stack trace is
java.io.FileNotFoundException: Error loading medatada for index file: _0.cfs|M|test1
at org.infinispan.lucene.InfinispanDirectory.openInput(InfinispanDirectory.java:262)
at org.apache.lucene.store.Directory.copy(Directory.java:221)
The actual cause of this error appears to be an issue with DistributedSegmentReadLocker
During org.infinispan.lucene.InfinispanIndexInput.close(),
readLocks.deleteOrReleaseReadLock() is called.
When eviction is enabled it appears the FileReadLockKey for the .cfs file is being
evicted, as SKIP_CACHE_STORE is specified null returns for the lock which causes
DistributedSegmentReadLocker to proceded to delete the actual .cfs file
When a later step tried to access the file it no longer exists resulting in the
fileNotFoundException
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: