]
Manik Surtani updated ISPN-789:
-------------------------------
Priority: Critical (was: Major)
Yup this is an issue. Added a test for this; thanks for reporting.
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
Priority: Critical
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: