Vladimir,
in my original tests I used two nodes, one owning the permit and the second
one waiting in acqire(). I then used a poison-pill (using a client and from
a separate JVM) to shutdown both nodes at the same time (similar to the
solution posted here:
Hi Igniters,
I've got a problem with a semaphore that seems to wait for a permit even if
the node is already shut down. This behavior appears in a multi-node setup
where i try to shut down all nodes at the same time (using a poison-pill).
The code below can be used to reproduce the behavior. You
quot;sem released");
}
} else {
System.out.println("sem not aquired");
}
}
}
yakov wrote
> Hi Mario!
>
> Can you please share the code somehow? Reproducible example will be very
> helpful.
>
> --Yakov
>
> 2016
Hi Igniters,
I'm getting some strange behavior when I try to call
IgniteSemaphore#tryAquire() while holding a lock on a cache element - the
method seems block forever.
Here's the details:
- create a cache (default, transactional) and get a lock using
Lock#tryLock()
- start a