[infinispan-issues] [JBoss JIRA] (ISPN-8494) Clear is leaking transaction with Batching
Dan Berindei (JIRA)
issues at jboss.org
Wed Mar 28 09:51:03 EDT 2018
[ https://issues.jboss.org/browse/ISPN-8494?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dan Berindei updated ISPN-8494:
-------------------------------
Status: Resolved (was: Pull Request Sent)
Resolution: Done
> 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