Re: Semaphore waiting for permit even if node is shut down

2016-02-29 Thread nyname00
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:

Semaphore waiting for permit even if node is shut down

2016-02-28 Thread nyname00
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

Re: Semaphore blocking on tryAcquire() while holding a cache-lock

2016-02-16 Thread nyname00
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

Semaphore blocking on tryAcquire() while holding a cache-lock

2016-02-16 Thread nyname00
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