[infinispan-issues] [JBoss JIRA] (ISPN-6507) When Infinispan runs with JCache, CacheLoader does not work even read through is true
Wayne Wayne (JIRA)
issues at jboss.org
Thu Apr 14 21:05:00 EDT 2016
Wayne Wayne created ISPN-6507:
---------------------------------
Summary: When Infinispan runs with JCache, CacheLoader does not work even read through is true
Key: ISPN-6507
URL: https://issues.jboss.org/browse/ISPN-6507
Project: Infinispan
Issue Type: Bug
Components: Core
Affects Versions: 7.2.5.Final
Reporter: Wayne Wayne
Fix For: 7.2.6.Final
When Infinispan runs with JCache, we can set read through to true so that the value can be loaded by cache loader. But when the data is loaded and verified expiration, it's always treated as expired.
org.infinispan.persistence.PersistenceUtil.loadAndCheckExpiration:
if (metadata != null && metadata.isExpired(timeService.wallClockTime())) { ...
org.infinispan.jcache.embedded.JCacheInternalMetadata:
public boolean isExpired(long now) {
return expiry > -1 && expiry <= now;
}
Here, the *expiry* is the expiry duration, and *now* is current timestamp. Method *isExpired* always return true.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the infinispan-issues
mailing list