[infinispan-issues] [JBoss JIRA] Commented: (ISPN-1285) Expired cache entries remains in the cache

Galder Zamarreño (JIRA) jira-events at lists.jboss.org
Tue Aug 2 10:22:24 EDT 2011


    [ https://issues.jboss.org/browse/ISPN-1285?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12618123#comment-12618123 ] 

Galder Zamarreño commented on ISPN-1285:
----------------------------------------

This scenario affects the Hot Rod client which has not been tested in this way. What happens is that CacheSupport associates a default lifespan and maxIdle with each put operation, however, this is only relevant in the server because the client does not know which values were set in the server config. So, these end up being 0 and so the server thinks it's a normal put.

I've looked at two ways of solving this but they don't really feasible: 
- the client knows what the configured values in the server are (not possible)
- the server has a way of detecting when a put has not been given a lifespan/maxIdle and so can apply default values (not possible cos there's only 0 or a positive number available for these fields)

I'm checking more options.

> Expired cache entries remains in the cache
> ------------------------------------------
>
>                 Key: ISPN-1285
>                 URL: https://issues.jboss.org/browse/ISPN-1285
>             Project: Infinispan
>          Issue Type: Bug
>    Affects Versions: 5.0.0.CR8
>            Reporter: Martin Gencur
>            Assignee: Galder Zamarreño
>             Fix For: 5.0.0.FINAL
>
>
> Default values for expiration specified via Infinispan configuration file (tag <expiration lifespan="2000" maxIdle="1000" />) do not influence real lifespan of cache entries.
> A test that proves this can be found at https://svn.devel.redhat.com/repos/jboss-qa/edg/infinispan-functional-tests/trunk/expiration. To run it, one has to set ISPN_HOME property pointing to standalone Infinispan (e.g. /tmp/infinispan-5.0.0.CR8) and run "mvn clean verify". Configuration files (infinispan-config-repl.xml) can be found in the project under src/test/resources and are used automatically for the test.
> The test is using 2 standalone Infinispan instances with replicated cache and configured file cache stores. Expiration should remove a cache entry from all locations (all cache in the cluster, all cache stores).
> The test fails on this line: Assert.assertEquals(null, cache.get("k3"));
> To run the test it is also needed to checkout the following projects and run "mvn clean install" on them:
> https://github.com/arquillian/arquillian-core
> https://github.com/infinispan/infinispan-arquillian-container
> The test will use hostnames test1 and test2, so these should be bound to virtual interfaces.

--
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