[infinispan-issues] [JBoss JIRA] Created: (ISPN-122) cache.size within tx
Mircea Markus (JIRA)
jira-events at lists.jboss.org
Tue Jul 7 05:39:51 EDT 2009
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
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