[infinispan-issues] [JBoss JIRA] Created: (ISPN-789) BdbjeCacheStore purges all mortal entries
Frank Knorr (JIRA)
jira-events at lists.jboss.org
Mon Nov 22 16:45:54 EST 2010
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
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