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
CacheInterceptor.
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.

Reply via email to