[ 
http://jira.codehaus.org/browse/MEXEC-18?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_86921
 ] 

Ryan Sonnek commented on MEXEC-18:
----------------------------------

I've examined my thread dump and *all* active threads are daemon threads.  
These daemon threads do *not* allow for interruption (they swallow 
InterruptedException).  I've been able to verify that these daemon threads are 
preventing the exec:java plugin from shutting down.  (by hacking the daemon 
threads to not swallow InterruptedException).

Daemon threads *should* be treated differently than normal threads.  If a 
daemon thread is not responding to interruption, the exec:java plugin should 
ignore it and continue shutting down.  of course logging the behavior is nice 
too.

> un-stopped damean threads prevent plugin shutdown
> -------------------------------------------------
>
>                 Key: MEXEC-18
>                 URL: http://jira.codehaus.org/browse/MEXEC-18
>             Project: Mojo Exec Plugin
>          Issue Type: Bug
>    Affects Versions: 1.1
>         Environment: using latest snapshot
>            Reporter: Ryan Sonnek
>
> my application is using daemon threads, and the exec:java plugin just hangs.
> {noformat}
> [DEBUG] interrupting thread Thread[Lazy 
> Clock,1,com.digitalriver.schedule.JobRunner]
> [DEBUG] joining on thread Thread[Lazy 
> Clock,1,com.digitalriver.schedule.JobRunner]
> {noformat}
> since these are daemon threads, the exec:java plugin should try to 
> interrupt/join, but exit cleanly without worrrying about them.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to