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

2016-03-04 Thread Valentin Kulichenko
m.out.println(">>> S1 READ 2"); > > > sem2.acquire(); > > > try { > > > System.out.println(">>> S1 ACQUIRED 2"); > > > } finally { > > > sem2.release(); > > > } > > > }).start(); > > > > > > try { > > > TimeUnit.SECONDS.sleep(2); > > > } catch (InterruptedException e) { > > > e.printStackTrace(); > > > } > > > > > > System.out.println(">>> I1 CLOSING"); > > > i1.close(); > > > System.out.println(">>> I1 CLOSED"); > > > } > > > > > > > > > > > > -- > > > View this message in context: > > > > > > http://apache-ignite-users.70518.x6.nabble.com/Semaphore-waiting-for-permit-even-if-node-is-shut-down-tp3232.html > > > Sent from the Apache Ignite Users mailing list archive at Nabble.com. > > > > > >

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

2016-02-29 Thread Vladisav Jelisavcic
ED 2"); > > } finally { > > sem2.release(); > > } > > }).start(); > > > > try { > > TimeUnit.SECONDS.sleep(2); > > } catch (InterruptedException e) { > > e.printStackTrace(); > > } > > > > System.out.println(">>> I1 CLOSING"); > > i1.close(); > > System.out.println(">>> I1 CLOSED"); > > } > > > > > > > > -- > > View this message in context: > > > http://apache-ignite-users.70518.x6.nabble.com/Semaphore-waiting-for-permit-even-if-node-is-shut-down-tp3232.html > > Sent from the Apache Ignite Users mailing list archive at Nabble.com. > > >

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

2016-02-29 Thread Vladimir Ozerov
>>> S1 ACQUIRED 2"); > } finally { > sem2.release(); > } > }).start(); > > try { > TimeUnit.SECONDS.sleep(2); > } catch (InterruptedException e) { > e.printStackTrace(); >