-
1. Re: cache loading in a cluster - question
dmitry123 Aug 10, 2011 1:36 PM (in response to dmitry123)just wanted to clarify my question. i understand the semantics of writing to a cache before it's loaded. my question was meant to find out the specifics of Inifinispan - it it let's you read/write from partially loaded cache, and if it does then how does it merge data from the partially loaded cache with the rest of the cluster.
i see there's a CacheStarted callback so i'll use that in my custom Future for now. but i still would like to know the behavior of Infinispan in my given scenario. thank you.
-
2. Re: cache loading in a cluster - question
galder.zamarreno Aug 12, 2011 10:57 AM (in response to dmitry123)1 of 1 people found this helpfulA cache can be preloaded in several ways, whether using state transfer to retrieve state from another node in the cluster, or via cache store preload where a previously populated cache store is read. In both cases, the preloading or state transfer needs to finish before you can read/write to it.
-
3. Re: cache loading in a cluster - question
mircea.markus Aug 31, 2011 1:08 PM (in response to dmitry123)1 of 1 people found this helpfulWhen a new node comes up and the cache starts to receive data from another cache during startup, is it ok to write or read from the cache before it receives all of data? Any documentation on this?
You won't be able to write to the starting cache before it is started - and that includes transfering data from existing members.
It is safe to write to other members and infinispan will take care of data consistency for you.