hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lars Hofhansl (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-5641) decayingSampleTick1 prevents HBase from shutting down.
Date Tue, 27 Mar 2012 17:14:26 GMT

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

Lars Hofhansl commented on HBASE-5641:
--------------------------------------

@Andrew: In this case this is a constantly running background thread that keeps statistics
around for as long as the server is up. So in this case these must be daemon threads (only
one in this case, though) or the executor must be shutdown on server shutdown.
Not sure I understand your question. I suppose there are cases where we want to create non-daemon
threads, but typically not in our servers.
                
> decayingSampleTick1 prevents HBase from shutting down.
> ------------------------------------------------------
>
>                 Key: HBASE-5641
>                 URL: https://issues.apache.org/jira/browse/HBASE-5641
>             Project: HBase
>          Issue Type: Sub-task
>            Reporter: Lars Hofhansl
>            Assignee: Lars Hofhansl
>            Priority: Blocker
>             Fix For: 0.94.0, 0.96.0
>
>         Attachments: 5641.txt
>
>
> I think this is the problem. It creates a non-daemon thread.
> {code}
>   private static final ScheduledExecutorService TICK_SERVICE = 
>       Executors.newScheduledThreadPool(1, 
>           Threads.getNamedThreadFactory("decayingSampleTick"));
> {code}

--
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