[infinispan-issues] [JBoss JIRA] Updated: (ISPN-789) BdbjeCacheStore purges all mortal entries
Manik Surtani (JIRA)
jira-events at lists.jboss.org
Tue Nov 23 06:21:59 EST 2010
[ https://jira.jboss.org/browse/ISPN-789?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Manik Surtani updated ISPN-789:
-------------------------------
Fix Version/s: 4.2.0.CR1
Complexity: Low
> BdbjeCacheStore purges all mortal entries
> -----------------------------------------
>
> Key: ISPN-789
> URL: https://jira.jboss.org/browse/ISPN-789
> Project: Infinispan
> Issue Type: Bug
> Components: Loaders and Stores
> Affects Versions: 4.2.0.BETA1
> Reporter: Frank Knorr
> Assignee: Manik Surtani
> Fix For: 4.2.0.CR1
>
>
> purgeInternal in class BdbjeCacheStore uses tailMap on map of expire time of entries. The SortedStoredMap expiryMap uses SerialBinding so entries are sorted by expire time (SerialBinding --> DataOutputStream --> writeLong)
> Due to javadoc of tailMap it returns all entries with expire time greater than System.currentTimeMillis()
> "Returns a view of the portion of this sorted map whose elements are strictly greater than fromKey, optionally including fromKey."
> But all entries which expire in future have an expire time greater than System.currentTimeMillis().
> I guess headMap should be used instead of tailMap
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the infinispan-issues
mailing list