Hi,

I've checked code and it looks like the current implementation of
ReentrantLock doesn't have proper processing of failoverSafe flag. I've
created ticket for it's implementation:
https://issues.apache.org/jira/browse/IGNITE-8810.

As for workaround, you can use reentrantLock without failoverSafe flag and
isBroken() before locking and recreate lock if needed. Alternatively, you
can add listener for Node_LEFT and NODE_FAILED events and check locks on it.

Additionally, you can use CacheLock instead of ReentrantLock - it works even
faster: https://apacheignite.readme.io/docs/distributed-locks

Evgenii



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

Reply via email to