[infinispan-issues] [JBoss JIRA] (ISPN-5667) Unify isExpired for time and entries
Radim Vansa (JIRA)
issues at jboss.org
Mon Aug 10 09:29:02 EDT 2015
Radim Vansa created ISPN-5667:
---------------------------------
Summary: Unify isExpired for time and entries
Key: ISPN-5667
URL: https://issues.jboss.org/browse/ISPN-5667
Project: Infinispan
Issue Type: Bug
Reporter: Radim Vansa
{{DefaultTimeService.isTimeExpired()}} is implemented using non-strict comparison:
{code}
time() - endTime >= 0
{code}
while expiration of entries in {{ExpiryHelper}} uses strict one:
{code}
now > created + lifespan
{code}
I don't know which one should be the correct one, probably fixing this in TimeService will cause less trouble.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
More information about the infinispan-issues
mailing list