-
15. Re: Strange ClassCastException in OptimisticCreateIfNotExist
manik Nov 7, 2007 7:23 PM (in response to spennec)"spennec" wrote:
We are heavily using TreeCache on my project, so if I can be of any help to have this problem solved, I'd be more than happy! :-)
What you could do is check out the fix (once I have committed it), build the cache from srcs and give it a try, see if it solves your problem (although I'm pretty certain it will)."spennec" wrote:
One more small question (slightly off topic, though): if I setup a TreeCacheListener on the two members of my cluster, and I remove a node in one member: is the other member's listener supposed to be called?
Yes, when the remove call is propagated to and executed on the other member. No if you're using invalidation rather than replication though; in the case of invalidation you'd just get eviction callbacks on the remote node. -
16. Re: Strange ClassCastException in OptimisticCreateIfNotExist
genman Nov 7, 2007 8:17 PM (in response to spennec)See: http://lucene.apache.org/java/docs/fileformats.html on VInt on saving space for the ordinary case.
-
17. Re: Strange ClassCastException in OptimisticCreateIfNotExist
manik Nov 7, 2007 10:04 PM (in response to spennec)Thanks for the tip on this, certainly looks useful.
-
18. Re: Strange ClassCastException in OptimisticCreateIfNotExist
spennec Nov 8, 2007 2:21 AM (in response to spennec)Manik,
Great to see that the reason is now clear! :-)
If I checkout and build TreeCache from the source, will the result be as stable as the 2.0.0 version that I am using?
Or are you in heavy development and there may be parts of the products that are "work in progress"? I certainly would like to use the fix as soon as possible, and I am willing to build from source, but I just want to be sure that the result will be production-stable.
Yes, when the remove call is propagated to and executed on the other member. No if you're using invalidation rather than replication though; in the case of invalidation you'd just get eviction callbacks on the remote node.
Ok, so if I want to reload a cached value right after its invalidation, I could remove() the node, and catch the event in both members of the cluster, know which node was removed and reload the corresponding data?
Thanks for your help, and keep me informed when the fix is ready :-) -
19. Re: Strange ClassCastException in OptimisticCreateIfNotExist
manik Nov 8, 2007 6:53 AM (in response to spennec)The fix is in subversion (trunk) so go ahead and build/test it, feedback.
In terms of stability, 2.1.0 is in CR1 at the moment so it is pretty close to GA, which should be in the next couple of weeks. Note that CR1 - released earlier this week - does not have the fix.
Re: cache listeners, what cache mode are you using? -
20. Re: Strange ClassCastException in OptimisticCreateIfNotExist
spennec Nov 8, 2007 7:36 AM (in response to spennec)Hi Manik,
The fix was commited quickly, thanks!
Regarding listeners, I am using REPL_ASYNC. What seems strange is that with Replication on, the data is refreshed twice: with the replication and when the listener is called. What I want to do is just reload the data when a node is removed.
I guess that I have to implement the reloading behaviour in my "cache manager" class: when something is removed, it will reload the data. -
21. Re: Strange ClassCastException in OptimisticCreateIfNotExist
spennec Nov 8, 2007 7:58 AM (in response to spennec)Manik,
I tried to checkout the source code, based on the page I found http://docs.jboss.org/process-guide/en/html/svnaccess.html but I cannot connect to either svn.jboss.org, nor anonsvn.jboss.org. Might be my company's firewall, or something else, I'm not sure.
Could you build a jar and give it to me? -
22. Re: Strange ClassCastException in OptimisticCreateIfNotExist
manik Nov 8, 2007 8:07 AM (in response to spennec)Can't be a f'wall - it's over http!!
Does this link open in a browser?
http://anonsvn.jboss.org/repos/jbosscache/core/trunk
If so, try:svn co http://anonsvn.jboss.org/repos/jbosscache/core/trunk
-
23. Re: Strange ClassCastException in OptimisticCreateIfNotExist
spennec Nov 8, 2007 9:47 AM (in response to spennec)That was a proxy problem, I am downloading the code right now...
Will keep you informed :) -
24. Re: Strange ClassCastException in OptimisticCreateIfNotExist
spennec Nov 9, 2007 1:51 AM (in response to spennec)Manik,
Wow, there are 58 tests failures... I just can't use this as a production component...
I'll build it without running the tests just to check that the fix resolved my problem, and keep you informed. -
25. Re: Strange ClassCastException in OptimisticCreateIfNotExist
manik Nov 9, 2007 10:01 AM (in response to spennec)Yes, there are failures in trunk at the moment. I'm not suggesting you use a snapshot build in production. :-)
I just want to make sure the patch solves your specific problem. Naturally, trunk will be stabilised before releasing. -
26. Re: Strange ClassCastException in OptimisticCreateIfNotExist
spennec Nov 9, 2007 10:23 AM (in response to spennec)Hi Manik,
Sorry, I just haven't had time today to test the build. I'll test it Monday and provide you with feedback.