-
Bug
-
Resolution: Done
-
Major
-
4.0.0.Final, 4.1.0.Final
-
None
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
- duplicates
-
ISPN-680 Unintentional Segment Removal
- Closed