[infinispan-issues] [JBoss JIRA] Updated: (ISPN-122) cache.size within tx

Manik Surtani (JIRA) jira-events at lists.jboss.org
Wed Jan 6 06:34:30 EST 2010


     [ https://jira.jboss.org/jira/browse/ISPN-122?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Manik Surtani updated ISPN-122:
-------------------------------

    Fix Version/s: 4.0.0.GA


> cache.size within tx
> --------------------
>
>                 Key: ISPN-122
>                 URL: https://jira.jboss.org/jira/browse/ISPN-122
>             Project: Infinispan
>          Issue Type: Bug
>            Reporter: Mircea Markus
>            Assignee: Manik Surtani
>             Fix For: 4.0.0.GA
>
>
> Following test fails, by returning a size of 0 even though 1 element was added within a tx.
> public void testSizeWithinTx() throws Exception {
>       TransactionManager tm = TestingUtil.getTransactionManager(c);
>       tm.begin();
>       c.put("key", "value");
>       assert c.size() == 1 : "expected 1, received " + c.size();
>       c.put("key2", "value2");
>       assert c.size() == 2;
>       tm.commit();
>       assert c.size() == 2;
>    }
> Also update http://www.jboss.org/community/wiki/Infinispaninteractivetutorial which relies on this functionality

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the infinispan-issues mailing list