[infinispan-issues] [JBoss JIRA] Resolved: (ISPN-625) Lucene Directory's methods length, filemodified, touch should return 0L instead of FileNotFoundException for unexistent files

Sanne Grinovero (JIRA) jira-events at lists.jboss.org
Wed Sep 1 14:04:11 EDT 2010


     [ https://jira.jboss.org/browse/ISPN-625?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sanne Grinovero resolved ISPN-625.
----------------------------------

    Resolution: Done


> Lucene Directory's methods length, filemodified, touch should return 0L instead of FileNotFoundException for unexistent files
> -----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: ISPN-625
>                 URL: https://jira.jboss.org/browse/ISPN-625
>             Project: Infinispan
>          Issue Type: Bug
>    Affects Versions: 4.1.0.CR3
>            Reporter: Sanne Grinovero
>            Assignee: Sanne Grinovero
>             Fix For: 4.1.0.Final, 5.0.0.BETA1
>
>
> Lucene appears to be inconsistent on this behaviour; the FSDirectory documents a FileNotfoundException but actually returns 0 while the RAMDirectory implements the FileNotfoundException but is totally synchronized,
> I assume the FSDirectory is more reliable in this case and we got a reported error about this, my rationale is that the race condition which FSDirectory can handle is never an issue in the synchronized blocks of RAMDirectory.
> Inspecting the code of Lucene, there appears to be no harm done in returning 0 for unexistend metadata.

-- 
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