[infinispan-issues] [JBoss JIRA] (ISPN-3560) Size after a suspended transaction is resumed is incorrectly calculated

William Burns (JIRA) jira-events at lists.jboss.org
Thu Sep 26 12:07:02 EDT 2013


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

William Burns reassigned ISPN-3560:
-----------------------------------

    Assignee: William Burns  (was: Mircea Markus)

    
> 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: 5.3.0.Final, 6.0.0.Beta1
>            Reporter: Galder Zamarreño
>            Assignee: William Burns
>             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



More information about the infinispan-issues mailing list