You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Marcel Reutegger (JIRA)" <ji...@apache.org> on 2014/01/09 11:20:50 UTC

[jira] [Commented] (OAK-1313) Process does not exit after benchmark run

    [ https://issues.apache.org/jira/browse/OAK-1313?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13866509#comment-13866509 ] 

Marcel Reutegger commented on OAK-1313:
---------------------------------------

I think this is caused by the new scheduled executor in RepositoryImpl introduced in http://svn.apache.org/r1556488 and the missing Repository.shutdown() call for Oak based test fixtures in oak-run.

> Process does not exit after benchmark run
> -----------------------------------------
>
>                 Key: OAK-1313
>                 URL: https://issues.apache.org/jira/browse/OAK-1313
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: core, run
>            Reporter: Marcel Reutegger
>
> The process does not exit after a benchmark run. E.g. execute:
> {noformat}
> java -Dwarmup=0 -Druntime=1 -jar oak-run-0.15-SNAPSHOT.jar benchmark SetPropertyTest Oak-Tar
> {noformat}
> The main thread is gone, but I assume it's this worker thread from a pool, which prevents the JVM from exiting:
> {noformat}
> "pool-2-thread-1" prio=6 tid=0x0000000013a48800 nid=0x22a4 waiting on condition [0x00000000139de000]
>    java.lang.Thread.State: TIMED_WAITING (parking)
>         at sun.misc.Unsafe.park(Native Method)
>         - parking to wait for  <0x000000070031dad0> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
>         at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:226)
>         at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2082)
>         at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:1090)
>         at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:807)
>         at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1068)
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>         at java.lang.Thread.run(Thread.java:744)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)