You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Peter Schuller (Commented) (JIRA)" <ji...@apache.org> on 2012/01/27 09:05:38 UTC

[jira] [Commented] (CASSANDRA-3797) StorageProxy static initialization not triggered until thrift requests come in

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

Peter Schuller commented on CASSANDRA-3797:
-------------------------------------------

Maybe a Class.forName() is cleaner (a Class klass = StorageProxy.class does not (necessarily) cause it to be loaded).

                
> StorageProxy static initialization not triggered until thrift requests come in
> ------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-3797
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3797
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Peter Schuller
>            Assignee: Peter Schuller
>            Priority: Minor
>         Attachments: CASSANDRA-3797-trunk-v1.txt
>
>
> While plugging in the metrics library for CASSANDRA-3671 I realized (because the metrics library was trying to add a shutdown hook on metric creation) that starting cassandra and simply shutting it down, causes StorageProxy to not be initialized until the drain shutdown hook.
> Effects:
> * StorageProxy mbean missing in visualvm/jconsole after initial startup (seriously, I thought I was going nuts ;))
> * And in general anything that makes assumptions about running early, or at least not during JVM shutdown, such as the metrics library, will be problematic

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