[
https://jira.jboss.org/jira/browse/JBCACHE-1406?page=com.atlassian.jira.p...
]
Mircea Markus updated JBCACHE-1406:
-----------------------------------
Fix Version/s: 3.0.0.BETA1
2.1.X
Affects Version/s: 2.2.0.GA
2.1.0.GA
2.0.0.GA
this also fails on subsequent versions. Code sample below
public void testSimple() throws Exception
{
DefaultCacheFactory dcf = new DefaultCacheFactory();
CacheSPI cache = (CacheSPI)
dcf.createCache("META-INF/conf-test/local-tx-service.xml");
TransactionManager txManager = cache.getTransactionManager();
txManager.begin();
cache.put( "/a/b/c", "key", "value");
cache.remove("/a/ b","key");
cache.put( "/a/b/d", "k","v");
txManager.commit();
assert cache.peek(Fqn.fromString("/a/b/c"), true, true) == null;
}
issue with removing an node in tx
---------------------------------
Key: JBCACHE-1406
URL:
https://jira.jboss.org/jira/browse/JBCACHE-1406
Project: JBoss Cache
Issue Type: Bug
Security Level: Public(Everyone can see)
Affects Versions: 2.0.0.GA, 1.4.1.SP9, 2.1.0.GA, 2.2.0.GA
Reporter: Mircea Markus
Assignee: Mircea Markus
Fix For: 3.0.0.BETA1, 1.4.X, 2.1.X
Attachments: JBCACHE-1406.patch
tx.start()'
cache.put(/a/b/c);
cache.remove(/a/b);
cache.put(/a/b/d);
tx.commit();
assert "this still exists in the internal structure" : cache.peek(/a/b/c) ==
null;
above assertion fails.
The problem is that when tx commits and cache wants to remove /a/b, sees that its not
marked for removal (as it was re-added through put(/a/b/d) )and does not look in its
children.
Method is TreeCache.realRemove, and it;s called from TxInterceptor.commit()
UT added to reproduce the issue is: org.jboss.cache.RemoveOnTxTest.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira