0
votes

I'm using the Java Thick Client of Apache Ignite. I manually acquire locks and release them afterwards. It might happen for whatever reason that code which releases the lock is never reached and thus the lock would persist in the Grid forever. Is there a way to limit the time a lock may exist in Apache Ignite? I tried with the created expiry policy but the locks were not removed.

1

1 Answers

0
votes

It is advised to use Ignite.reentrantLock() instead.

You can close() an IgniteLock (I assume you do not have to own it), so you can "GC" them.