Andrew,

The issue, that you filed, shows a different problem. It doesn't address
lock's reentrancy.
Lock's implementation contains a counter, that tracks, how many times it
was acquired.
But it's ignored in the *unlock()* method.
So, I think, the lock shouldn't be released, until the *unlock()* method is
called an appropriate number of times.

Denis

чт, 28 июн. 2018 г. в 10:01, aealexsandrov <aealexsand...@gmail.com>:

> Hi,
>
> As I remember we already discussed here with Jon:
>
>
> http://apache-ignite-users.70518.x6.nabble.com/If-a-lock-is-held-by-another-node-IgniteCache-isLocalLocked-appears-to-return-incorrect-results-td22110.html#a22149
>
> that isLocalLocked method works incorrectly in case if several nodes
> started
> in the same JVM. I even file the issue:
>
> https://issues.apache.org/jira/browse/IGNITE-8833
>
> In the current example, several nodes started in the same JVM too. So this
> method will not work properly.
>
> BR,
> Andrei
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>

Reply via email to