ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kevin <kevin.c...@leonardo.com>
Subject Re: CacheStore implementation using Hibernate
Date Mon, 21 Sep 2015 15:55:26 GMT
Hi Val,

Wouldn't IgniteCache.putIfAbsent() only work when you're inserting a new
value (two concurrent creates, as opposed to two concurrent updates)?

Would the following work?
In CacheInterceptor, compare entry.getValue()'s locking against newVal's
locking, and increment newVal's locking.

I noticed that the CacheInterceptor was being called twice for one update.
(Is it once for the primary copy and once for the backup copy?) It seems
that depending which node does it first, entry.getValue() on the second node
could either contain the values before OR after the changes made by
Also if the cache entry is not loaded, does read-through occur during the
CacheInterceptor stage?

View this message in context: http://apache-ignite-users.70518.x6.nabble.com/CacheStore-implementation-using-Hibernate-tp1423p1456.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

View raw message