Pedro Ruivo created ISPN-8494:
---------------------------------
Summary: Clear is leaking transaction with Batching
Key: ISPN-8494
URL:
https://issues.jboss.org/browse/ISPN-8494
Project: Infinispan
Issue Type: Feature Request
Components: Transactions
Reporter: Pedro Ruivo
Assignee: Pedro Ruivo
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)