You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by eerick <ee...@gmail.com> on 2021/02/01 04:29:25 UTC

Initial data loading from database

Dear all,

I'm in ignite version 2.8.1 and I have a 2-node cluster running in partition
mode and with backup set to 1. For every node restart I full load a database
table to the node. My question is if I do a rolling restart on the 2 nodes,
and 1 of the nodes is updating the cache with write through to the database
and at the same the other restarting node is loading data from database.
Will it cause inconsistent state on the ignite cache? And if it's the case,
how to avoid that? 

Thanks & Regards,
eerick



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: Initial data loading from database

Posted by Ilya Kasnacheev <il...@gmail.com>.
Hello!

loadCache usually will only affect local partitions. There are no
guarantees that entries loaded from cache store are in sync. Entries
touched via Ignite APIs should be in sync. loadCache will not overwrite
existing data.

Regards,
-- 
Ilya Kasnacheev


пн, 1 февр. 2021 г. в 07:29, eerick <ee...@gmail.com>:

> Dear all,
>
> I'm in ignite version 2.8.1 and I have a 2-node cluster running in
> partition
> mode and with backup set to 1. For every node restart I full load a
> database
> table to the node. My question is if I do a rolling restart on the 2 nodes,
> and 1 of the nodes is updating the cache with write through to the database
> and at the same the other restarting node is loading data from database.
> Will it cause inconsistent state on the ignite cache? And if it's the case,
> how to avoid that?
>
> Thanks & Regards,
> eerick
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>