[JBoss JIRA] Created: (ISPN-625) Lucene Directory's methods length, filemodified, touch should return 0L instead of FileNotFoundException for unexistent fils
by Sanne Grinovero (JIRA)
Lucene Directory's methods length, filemodified, touch should return 0L instead of FileNotFoundException for unexistent fils
----------------------------------------------------------------------------------------------------------------------------
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
13 years, 10 months
[JBoss JIRA] Created: (ISPN-512) Avoid throwing an IOException on a buffer switch caused by Lucene's seek()
by Sanne Grinovero (JIRA)
Avoid throwing an IOException on a buffer switch caused by Lucene's seek()
--------------------------------------------------------------------------
Key: ISPN-512
URL: https://jira.jboss.org/browse/ISPN-512
Project: Infinispan
Issue Type: Bug
Components: Lucene Directory
Affects Versions: 4.1.0.BETA2, 4.1.0.BETA1, 4.1.0.ALPHA3, 4.1.0.ALPHA2, 4.1.0.ALPHA1, 4.0.0.Final, 4.0.0.CR4, 4.0.0.CR3, 4.0.0.CR2, 4.0.0.CR1
Reporter: Sanne Grinovero
Assignee: Sanne Grinovero
Fix For: 4.1.0.CR1
Examining Lucene's sourcecode it appears that skipping to an unexisting buffer should throw an IOException *unless* it's being caused by a seek(position) having a too position value. We currently always throw such an exception when asked for a buffer which can't be found.
--
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
13 years, 10 months