[JBoss JIRA] Created: (ISPN-670) Consider all entries from data container as eviction candidates
by Vladimir Blagojevic (JIRA)
Consider all entries from data container as eviction candidates
---------------------------------------------------------------
Key: ISPN-670
URL: https://jira.jboss.org/browse/ISPN-670
Project: Infinispan
Issue Type: Bug
Components: Eviction
Affects Versions: 4.2.0.ALPHA2, 4.1.0.Final
Reporter: Vladimir Blagojevic
Assignee: Vladimir Blagojevic
There was a subtle change of eviction semantics starting with 4.1 where only immortal entries are considered as eviction candidates. By default all entries are immortal, that is, their expiration and lifespan are -1. As soon as mortal entries are used (expiration !=-1 || lifespan !=-1) they are not subject to eviction policies and container size can grow above limit specified in maxEntries.
This policy is confusing and it does not make a lot of sense. All candidates, both mortal and immortal should be considered as eviction candidates and as such subject to eviction.
--
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
14 years, 2 months
[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
14 years, 2 months