[infinispan-issues] [JBoss JIRA] Commented: (ISPN-882) Size and isEmpty returning wrong values within tx

Galder Zamarreño (JIRA) jira-events at lists.jboss.org
Wed Jan 19 10:00:50 EST 2011


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

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

The origin of this behaivour seems to come from ISPN-708

> Size and isEmpty returning wrong values within tx
> -------------------------------------------------
>
>                 Key: ISPN-882
>                 URL: https://issues.jboss.org/browse/ISPN-882
>             Project: Infinispan
>          Issue Type: Bug
>    Affects Versions: 4.2.0.Final, 4.2.1.CR1, 5.0.0.ALPHA2
>            Reporter: Galder Zamarreño
>            Assignee: Galder Zamarreño
>             Fix For: 4.2.1.Final, 5.0.0.BETA1
>
>
> size() and isEmpty() returning wrong values when called within tx, for example, the following test fails:
>    public void testSizeIsEmptyWithinTx(Method m) throws Exception {
>       Cache<String, String> localCache = cacheManager.getCache(m.getName());
>       tm().begin();
>       assert localCache.size() == 0;
>       assert localCache.isEmpty();
>       localCache.put("k-" + m.getName(), "v-" + m.getName());
>       assert localCache.size() == 0;
>       assert localCache.isEmpty();
>       tm().commit();
>       assert localCache.size() == 1;
>       assert !localCache.isEmpty();
>    }
> This used to work in 4.0, see http://community.jboss.org/docs/DOC-14695

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