[infinispan-issues] [JBoss JIRA] (ISPN-8249) EvictionFunctionalTest.testSimpleExpirationMaxIdle random failure
Radim Vansa (JIRA)
issues at jboss.org
Thu Sep 7 11:49:00 EDT 2017
[ https://issues.jboss.org/browse/ISPN-8249?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13460413#comment-13460413 ]
Radim Vansa commented on ISPN-8249:
-----------------------------------
So the expiration thread in fact updates the created timestamp as it calls OffHeapEntryFactoryImpl.create each time it accesses the data. If the expiration happens concurrently to size() check in the test, it's possible that we see entry that was just updated - so it's not found to be expired and size() returns positive value.
> EvictionFunctionalTest.testSimpleExpirationMaxIdle random failure
> -----------------------------------------------------------------
>
> Key: ISPN-8249
> URL: https://issues.jboss.org/browse/ISPN-8249
> Project: Infinispan
> Issue Type: Bug
> Affects Versions: 9.1.0.Final
> Reporter: Tristan Tarrant
> Assignee: Radim Vansa
> Labels: testsuite_stability
>
> java.lang.AssertionError: cache size should be zero: 0
> at org.infinispan.eviction.impl.EvictionFunctionalTest.testSimpleExpirationMaxIdle(EvictionFunctionalTest.java:93)
> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
> at java.lang.Thread.run(Thread.java:748)
> ... Removed 16 stack frames
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
More information about the infinispan-issues
mailing list