The reason behind locking backup copy

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The reason behind locking backup copy

voipp
Hi, Igntrs! Consider primary node P, backup node B for some key1. When we
create lock on this key (at primary node) :

IgniteCache<Object, Object> primaryCache =
primaryIgnite.cache(DEFAULT_CACHE_NAME);

primaryCache.lock("key1").lock()

After lock acquired on primary node, the GridCacheMvccCandidate would be
created on backup node .

What is the point of creating candidate on backup node ? I cannot find any
reason for this.
--

*Best Regards,*

*Kuznetsov Aleksey*