cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brandon Williams (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-3335) ThreadPoolExecutor creates threads as non-daemon and will block on shutdown by default
Date Thu, 01 Dec 2011 22:08:41 GMT

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

Brandon Williams commented on CASSANDRA-3335:
---------------------------------------------

Tracked down to the shutdown hook:

{noformat}
   java.lang.Thread.State: TIMED_WAITING (sleeping)
    at java.lang.Thread.sleep(Native Method)
    at org.apache.cassandra.utils.ExpiringMap.shutdown(ExpiringMap.java:103)
    at org.apache.cassandra.net.MessagingService.shutdown(MessagingService.java:495)
    at org.apache.cassandra.service.StorageService$2.runMayThrow(StorageService.java:426)
    at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:30)
    at java.lang.Thread.run(Thread.java:662)
{noformat}

Appears to be the ExpiringMap added in CASSANDRA-2034.
                
> ThreadPoolExecutor creates threads as non-daemon and will block on shutdown by default
> --------------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-3335
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3335
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>            Reporter: Brandon Williams
>            Assignee: Jonathan Ellis
>            Priority: Minor
>             Fix For: 1.0.6
>
>         Attachments: 3335-v2.txt, 3335.txt
>
>
> This is most obviously visible in OptionalTasks which should not block shutdown, but
often does.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message