[infinispan-issues] [JBoss JIRA] (ISPN-8494) Clear is leaking transaction with Batching

Pedro Ruivo (JIRA) issues at jboss.org
Tue Mar 27 09:30:01 EDT 2018


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

Pedro Ruivo updated ISPN-8494:
------------------------------
              Status: Pull Request Sent  (was: Open)
    Git Pull Request: https://github.com/infinispan/infinispan/pull/5873


> Clear is leaking transaction with Batching
> ------------------------------------------
>
>                 Key: ISPN-8494
>                 URL: https://issues.jboss.org/browse/ISPN-8494
>             Project: Infinispan
>          Issue Type: Bug
>          Components: Transactions
>            Reporter: Pedro Ruivo
>            Assignee: Pedro Ruivo
>             Fix For: 9.3.0.Alpha1
>
>
> When batching is enabled, the clear() tries to suspend the running transaction but it ends leaking the internal transaction used in the batch.
> {code:java}
>   public void testClearInBatch() {
>       Cache<String, String> cache = createCache("testClearInBatch");
>       cache.put("k2", "value2");
>       cache.startBatch();
>       cache.clear();
>       cache.put("k1", "value1");
>       cache.endBatch(true);
>       // the tx is leaked and it tries to execute the get() against a committed transaction.
>       AssertJUnit.assertEquals(null, cache.get("k2"));
>       AssertJUnit.assertEquals("value1", cache.get("k1"));
>    }
> {code}



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the infinispan-issues mailing list