Galder Zamarreño created ISPN-3560:
--------------------------------------
Summary: Size after a suspended transaction is resumed is incorrectly
calculated
Key: ISPN-3560
URL:
https://issues.jboss.org/browse/ISPN-3560
Project: Infinispan
Issue Type: Bug
Components: Transactions
Affects Versions: 6.0.0.Beta1, 5.3.0.Final
Reporter: Galder Zamarreño
Assignee: Mircea Markus
Fix For: 6.0.0.CR1, 6.0.0.Final
{code}
public void testSizeAfterClearInBranchedTransaction() throws Exception {
cache.put(1, "v1");
tm().begin();
try {
assertEquals("v1", cache.get(1));
Transaction suspended = tm().suspend();
tm().begin();
try {
cache.clear();
} finally {
tm().commit();
tm().resume(suspended);
assertEquals(1, cache.size()); // assertion fails
assertEquals("v1", cache.get(1));
}
} finally {
tm().commit();
}
}
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira