On 21 December 2011 08:53, Galder ZamarreƱo <galder(a)redhat.com> wrote:
Sanne, what if the previous value has been evicted or passivated? In
case of a shared cache store, one of them could go, retrieve the old value and return it.
If the cache store is not shared, they could all end up doing it.
Sharp points. If eviction is enabled, I'd assume that we don't need to
provide strong guarantees on the data and a return value of null is
acceptable.
But in my case I'm only having CacheLoader(s) enabled as write-through
backup, and caches don't have any passivation or eviction; more
importantly, the value is available in the local cache so no need to
ask remote nodes to look into their stores as the local one is
supposedly in sync with the rest of the world.
On Dec 21, 2011, at 12:16 AM, Sanne Grinovero wrote:
> Hi all,
> I just noticed writing a test using REPL that when doing a put
> operation the other nodes do a CacheLoader LOAD as well.
>
> Isn't that totally unnecessary?
>
> In fact assuming REPL guarantees consistency across all nodes, any
> form of remote return value should be implicitly skipped as we can
> satisfy return values by looking at local copies.
>
> Sanne
> _______________________________________________
> infinispan-dev mailing list
> infinispan-dev(a)lists.jboss.org
>
https://lists.jboss.org/mailman/listinfo/infinispan-dev
--
Galder ZamarreƱo
Sr. Software Engineer
Infinispan, JBoss Cache
_______________________________________________
infinispan-dev mailing list
infinispan-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/infinispan-dev