ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexey Popov <tank2.a...@gmail.com>
Subject RE: Node failed to startup due to deadlock
Date Mon, 13 Nov 2017 11:19:50 GMT
Ups, there is a some issue with text formatted below. It should be

just a replace 
cache2.lock("fake");
with 
Lock lock = ignite0.reentrantLock("fake", true, false, true);
where ignite0 is a "final" copy for a new Thread 
final Ignite ignite0 = ignite;

Thank you,
Alexey

From: Alexey Popov
Sent: Monday, November 13, 2017 2:12 PM
To: user@ignite.apache.org
Subject: RE: Node failed to startup due to deadlock

Hi Naresh,

I still don't have a clear understanding of your case. Very probably you
just need a Cache Store with Read-Through enabled. Please have a look at [1]
and Cache Store examples. 

As for code provided - you can have a workaround here until
https://issues.apache.org/jira/browse/IGNITE-6380 is ready. Please use
Ignite.reentrantLock() instead of transactional cache entry lock, i.e:

just a replace 

with 

where ignite0 is a "final" copy for a new Thread


[1] https://apacheignite.readme.io/docs/3rd-party-store

Thanks,
Alexey



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


Mime
View raw message