]
Pedro Ruivo updated ISPN-8494:
------------------------------
Fix Version/s: 9.2.2.Final
(was: 9.3.0.Alpha1)
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.2.2.Final
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}