[infinispan-issues] [JBoss JIRA] Commented: (ISPN-690) java.io.FileNotFoundException during Directory.copy

Sanne Grinovero (JIRA) jira-events at lists.jboss.org
Mon Oct 11 11:03:39 EDT 2010


    [ https://jira.jboss.org/browse/ISPN-690?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12556346#action_12556346 ] 

Sanne Grinovero commented on ISPN-690:
--------------------------------------

Hi Paul
thank you for the test, I'm sorry for the issue as it appears you spend some time analyzing it (well done !) but I think this is a duplicate of ISPN-680.
Could you try the latest version and use one of the new alternative constructors?

It's not allowed anymore to store the locks in a cache having eviction enabled, of course you can still use eviction on the main cache to use a bigger index than what can fit in (distributed) memory, for this we're now using one to three different caches, so that you can provide special configuration for each of them.
Please refer to the javadocs for details, or ask on the forum I'll be happy to give more directions.

thanks again for your analysis of the problem, which was indeed correct, that's exactly what was happening.

> 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.0.0.Final, 4.1.0.Final, 4.2.0.ALPHA2
>         Environment: Win32 JRE 1.6.0_21-b07
>            Reporter: Paul Nardone
>            Assignee: Sanne Grinovero
>             Fix For: 4.2.0.BETA1, 4.2.0.Final
>
>         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: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the infinispan-issues mailing list