-
1. Re: Eviction and buddy backup regions
manik Oct 1, 2007 6:32 AM (in response to brian.stansberry)Makes sense. Simplifies configuration for reuse across all nodes in the cluster.
I presume this would mean that any *explicit* eviction configuration of /_BUDDY_BACKUP_/xxx should be ignored? -
2. Re: Eviction and buddy backup regions
manik Oct 1, 2007 6:32 AM (in response to brian.stansberry)JBCACHE-1190
-
3. Re: Eviction and buddy backup regions
brian.stansberry Oct 1, 2007 9:30 AM (in response to brian.stansberry)You could allow explict configuration of /_BUDDY_BACKUP_/xxx. The getRegion impl
1) Tries to find a region using the passed in Fqn /_BUDDY_BACKUP_/xxx/foo.
2) If _default_ is found, check if Fqn is under /_BUDDY_BACKUP_/xxx; if so try to find a region using /foo.
That's overhead for an obscure use case. We could just skip that for now though and disallow explicit configuration. If requested, add it. -
4. Re: Eviction and buddy backup regions
brian.stansberry Oct 1, 2007 9:50 PM (in response to brian.stansberry)LOL. For an unrelated reason I was thinking about this yesterday and started this thread; today I'm chasing down an intermittent Branch_4_2 testsuite failure with EJB3 SFSB buddy replication and I find this is the cause. :)
-
5. Re: Eviction and buddy backup regions
brian.stansberry Oct 2, 2007 2:06 PM (in response to brian.stansberry)Unfortunately, there's another major problem with eviction and buddy replication. If a node is only available via a cache loader, data gravitation fails. http://jira.jboss.com/jira/browse/JBCACHE-1192
-
6. Re: Eviction and buddy backup regions
manik Oct 3, 2007 7:14 AM (in response to brian.stansberry)
Unfortunately, there's another major problem with eviction and buddy replication. If a node is only available via a cache loader, data gravitation fails.
You mean if the node has been evicted in memory on the buddy, but lives on in the buddy's cache loader, the DG call doesn't force the buddy to load from cache loader? -
7. Re: Eviction and buddy backup regions
brian.stansberry Oct 3, 2007 10:07 AM (in response to brian.stansberry)Correct. CacheImpl.gravitateData() uses findNode() to look for the data; doesn't go through the interceptors.
If the call is to go through the interceptors, and auto-gravitation is turned on, there needs to be a mechanism to suppress gravitation for the call. We have the Option to force gravitation, but not the opposite. -
8. Re: Eviction and buddy backup regions
manik Oct 3, 2007 12:28 PM (in response to brian.stansberry)Crap. That would be a pretty serious bug then.
-
9. Re: Eviction and buddy backup regions
brian.stansberry Oct 3, 2007 12:46 PM (in response to brian.stansberry)Yes. :( This would need to be resolved for AS 5 and for the next EAP 4.2 CP. JBCACHE-1190 too, if we can, else we have to do a lot of hacks with region configuration that will be hard to back out in later 5.x releases.