You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Andrey Gura (JIRA)" <ji...@apache.org> on 2015/10/30 14:30:27 UTC
[jira] [Commented] (IGNITE-1820) Deployment service hangs when node
is being stopped.
[ https://issues.apache.org/jira/browse/IGNITE-1820?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14982558#comment-14982558 ]
Andrey Gura commented on IGNITE-1820:
-------------------------------------
The problem is {{GridServiceProcessor}} doesn't complete deployment/undeployment futures. So deployment initiator thread ({{Thread-3 in thread dump below}}) is waiting for future completion while {{DestroyJavaVM}} thread waiting for termination of all non daemon threads.
{noformat}
"DestroyJavaVM" prio=10 tid=0x00007f29605de000 nid=0x3434 waiting on condition [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
"Thread-3" prio=10 tid=0x00007f2960959800 nid=0x349e waiting on condition [0x00007f285b9f8000]
java.lang.Thread.State: WAITING (parking)
at sun.misc.Unsafe.park(Native Method)
- parking to wait for <0x00000007d7d44538> (a org.apache.ignite.internal.processors.service.GridServiceDeploymentFuture)
at java.util.concurrent.locks.LockSupport.park(LockSupport.java:186)
at java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt(AbstractQueuedSynchronizer.java:834)
at java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedInterruptibly(AbstractQueuedSynchronizer.java:994)
at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(AbstractQueuedSynchronizer.java:1303)
at org.apache.ignite.internal.util.future.GridFutureAdapter.get0(GridFutureAdapter.java:157)
at org.apache.ignite.internal.util.future.GridFutureAdapter.get(GridFutureAdapter.java:115)
at org.apache.ignite.internal.util.future.IgniteFutureImpl.get(IgniteFutureImpl.java:119)
at org.apache.ignite.examples.servicegrid.ServicesDeadlock$1.run(ServicesDeadlock.java:60)
at java.lang.Thread.run(Thread.java:745)
{noformat}
> Deployment service hangs when node is being stopped.
> ----------------------------------------------------
>
> Key: IGNITE-1820
> URL: https://issues.apache.org/jira/browse/IGNITE-1820
> Project: Ignite
> Issue Type: Bug
> Reporter: Andrey Gura
> Assignee: Andrey Gura
> Fix For: 1.5
>
> Attachments: ServicesDeadlock.java
>
>
> Node hangs when a Service is being deployed on a node from one thread and at the same time the same node is being stopped from the other thread.
> See the reproducer example [^ServicesDeadlock.java]
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)