[jboss-dev-forums] [Design of JBossCache] - CacheListener notifications during data gravitation
bstansberry@jboss.com
do-not-reply at jboss.com
Sat Sep 30 23:46:57 EDT 2006
Found an issue with BR and the AS web clustering code that's really a general problem with BR.
Issue is that both the http session repl code and clustered sso use cache listeners that interpret nodeRemoved calls as indicating a session/sso has been invalidated on another node. They respond by invalidating on their own node.
Problem is the _dataGravitationCleanup call that's part of data gravitation also generates nodeRemoved calls. But in that case, it's not appropriate for the cache listener to do anything. This causes a less than ideal behavior with session repl and breaks clustered sso.
Right now there's no way for a cache listener to discriminate between the two cases. One solution I thought of was to have TreeCache set a boolean value in a ThreadLocal in _clusteredGet and _dataGravitationCleanup. A cache listener could then check for the ThreadLocal and ignore events that arise from data gravitation.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3975314#3975314
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3975314
More information about the jboss-dev-forums
mailing list