ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agura <ag...@apache.org>
Subject Re: CacheMode - REPLICATED related questions
Date Mon, 28 Aug 2017 15:09:06 GMT
Answers for all your questions (except of 4th) here depend on cache write
synchronization mode. In case of FULL_SYNC mode the exception will be thrown
on the client and you will be able to catch and process it. For PRIMARY_SYNC
and FULL_ASYNC modes the client will get successful result and it's possible
in this case that data will be inconsistent between primary and backup.

So you should choose mode that provides required consistency guarantee for
you.

Your (1,1) entry will be available only if it was written to partition on
node. You can use readFromBackup flag in order to control partition type
that will be source for entry reading. So, for your use case every get
operation will return (1,1) entry after put operation if readFromBackup ==
false independently of synchronization mode.



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/CacheMode-REPLICATED-related-questions-tp16423p16452.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Mime
View raw message