I have the same problem.
When the last node in FQN is a String everything is fine. But when the last node in FQN is
an Integer the cache is not cleared.
| treeCache.put(new Fqn(new Object[]{"a", "b",
Integer.valueOf(1).toString()}), "key2", "value2");//The data will be
cleared
|
| treeCache.put(new Fqn(new Object[]{"a", "b", Integer.valueOf(1)}),
"key2", "value2");//The data will not be cleared
The logs are the same in both cases
| 2006-08-21 10:52:02,692 TRACE [org.jboss.cache.eviction.LRUAlgorithm] Node /a/b/1
should be evicted because of max age
| 2006-08-21 10:52:02,692 TRACE [org.jboss.cache.eviction.BaseEvictionAlgorithm]
Attempting to evict cache node with fqn of /a/b/1
| 2006-08-21 10:52:02,692 TRACE [org.jboss.cache.interceptors.TxInterceptor] (null) call
on method [_evict(/a/b/1)]
| 2006-08-21 10:52:02,692 TRACE
[org.jboss.cache.interceptors.PessimisticLockInterceptor] PessimisticLockInterceptor
invoked for method _evict(/a/b/1)
| 2006-08-21 10:52:02,692 TRACE
[org.jboss.cache.interceptors.PessimisticLockInterceptor] Attempting to lock node /a/b/1
for owner Thread[Timer-5,5,jboss]
| 2006-08-21 10:52:02,692 TRACE [org.jboss.cache.Node] acquiring RL: fqn=/a,
caller=Thread[Timer-5,5,jboss], lock=<unlocked>
| 2006-08-21 10:52:02,692 TRACE [org.jboss.cache.Node] acquired RL: fqn=/a,
caller=Thread[Timer-5,5,jboss], lock=read owners=[Thread[Timer-5,5,jboss]]
| 2006-08-21 10:52:02,692 TRACE [org.jboss.cache.Node] acquiring RL: fqn=/a/b,
caller=Thread[Timer-5,5,jboss], lock=<unlocked>
| 2006-08-21 10:52:02,692 TRACE [org.jboss.cache.Node] acquired RL: fqn=/a/b,
caller=Thread[Timer-5,5,jboss], lock=read owners=[Thread[Timer-5,5,jboss]]
| 2006-08-21 10:52:02,692 TRACE [org.jboss.cache.Node] acquiring WL: fqn=/a/b/1,
caller=Thread[Timer-5,5,jboss], lock=<unlocked>
| 2006-08-21 10:52:02,692 TRACE [org.jboss.cache.Node] acquired WL: fqn=/a/b/1,
caller=Thread[Timer-5,5,jboss], lock=write owner=Thread[Timer-5,5,jboss]
| 2006-08-21 10:52:02,692 TRACE [org.jboss.cache.interceptors.CallInterceptor] Invoking
method _evict(/a/b/1) on cache.
| 2006-08-21 10:52:02,692 TRACE [org.jboss.cache.TreeCache] _evict(/a/b/1)
| 2006-08-21 10:52:02,692 TRACE [org.jboss.cache.TreeCache] _remove(null,
"/a/b/1")
| 2006-08-21 10:52:02,692 TRACE [org.jboss.cache.AbstractNode] removed child 1
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3966381#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...