You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by bluehu <hu...@gmail.com> on 2017/04/04 14:10:19 UTC

data consistency in atomic mode

If I set 
"cacheMode" = "PARTITIONED", 
“atomicityMode” = "ATOMIC", 
"backups" = "2",
"writeSynchronizationMode" = "FULL_SYNC".

one data have 1 primary node and 2 backup node, then I put data X, the step
should be:
1) client      --> primary
2) primary   --> 2 backup
3) 2 backup --> primary
4) primary   --> client

If primary node crashed in step 2, and have sent "put request" to one of the
2 backup node, then one backup node have new value, but the other backup
have old value, and client get timeout fault.

this time the copy in 2 backup node should be not consistent, does ignite
ensure data consistency in this case under atomic mode?



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/data-consistency-in-atomic-mode-tp11719.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: data consistency in atomic mode

Posted by dkarachentsev <dk...@gridgain.com>.
Yes, you're correct, in this case atomic cache could be inconsistent and
transactional cache will provide consistency guarantees.

-Dmitry.




--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/data-consistency-in-atomic-mode-tp11719p11746.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: data consistency in atomic mode

Posted by bluehu <hu...@gmail.com>.
if client and primary node all crashed, in this case, does ignite also ensure
data consistency? or only rely on "client put" next time?

there are my understands (1 primary and 2 backup):
in atomic mode, data consistency rely on client put, can not achieve "strong
consistent", ignite can not replace zookeeper;
in transaction mode, data consistency rely on 2pc protocol, can achieve
"strong consistent", ignite can replace zookeeper.

is this understanding correct?



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/data-consistency-in-atomic-mode-tp11719p11730.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: data consistency in atomic mode

Posted by dkarachentsev <dk...@gridgain.com>.
Hi,

In FULL_SYNC mode client will retry update to new primary node. So yes,
cache will be consistent.

-Dmitry.



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/data-consistency-in-atomic-mode-tp11719p11723.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.