Re: Partitioned cache behaviour when saving the same key on different nodes

2021-05-20 Thread Ilya Kasnacheev
Hello!

For every key there is a primary node. Both puts will happen on that node
in some order.

Please see
https://ignite.apache.org/docs/latest/data-modeling/data-partitioning

Regards,
-- 
Ilya Kasnacheev


чт, 20 мая 2021 г. в 18:10, r_s :

> Hi all,
>
> I am trying to understand what happens in the following situation:
> I have a partitioned cache that is accessed via the IgniteRepository from
> org.apache.ignite.springdata22.repository. Now I realized, that it might
> happen that two nodes will call the save method on the repository with the
> same key but different value objects. We can expect that the key is not
> present in the cache yet. What is the expected behaviour of the cache in
> this situation? Will the nodes hold the conflicting data on different
> partitions until they are somehow synchronized?
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>


Partitioned cache behaviour when saving the same key on different nodes

2021-05-20 Thread r_s
Hi all,

I am trying to understand what happens in the following situation:
I have a partitioned cache that is accessed via the IgniteRepository from
org.apache.ignite.springdata22.repository. Now I realized, that it might
happen that two nodes will call the save method on the repository with the
same key but different value objects. We can expect that the key is not
present in the cache yet. What is the expected behaviour of the cache in
this situation? Will the nodes hold the conflicting data on different
partitions until they are somehow synchronized?



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