cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard Low (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-6751) Setting -Dcassandra.fd_initial_value_ms Results in NPE
Date Mon, 21 Jul 2014 03:37:39 GMT

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

Richard Low commented on CASSANDRA-6751:
----------------------------------------

This issue also affects 2.0 branch and was fixed in 2.0.8.

> Setting -Dcassandra.fd_initial_value_ms Results in NPE
> ------------------------------------------------------
>
>                 Key: CASSANDRA-6751
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-6751
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>            Reporter: Tyler Hobbs
>            Assignee: Dave Brosius
>            Priority: Minor
>             Fix For: 1.2.17
>
>         Attachments: 6751.txt
>
>
> Start Cassandra with {{-Dcassandra.fd_initial_value_ms=1000}} and you'll get the following
stacktrace:
> {noformat}
>  INFO [main] 2014-02-21 14:45:57,731 StorageService.java (line 617) Starting up server
gossip
> ERROR [main] 2014-02-21 14:45:57,736 CassandraDaemon.java (line 464) Exception encountered
during startup
> java.lang.ExceptionInInitializerError
>     at org.apache.cassandra.gms.Gossiper.<init>(Gossiper.java:178)
>     at org.apache.cassandra.gms.Gossiper.<clinit>(Gossiper.java:71)
>     at org.apache.cassandra.service.StorageService.joinTokenRing(StorageService.java:618)
>     at org.apache.cassandra.service.StorageService.initServer(StorageService.java:583)
>     at org.apache.cassandra.service.StorageService.initServer(StorageService.java:480)
>     at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:348)
>     at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:447)
>     at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:490)
> Caused by: java.lang.NullPointerException
>     at org.apache.cassandra.gms.FailureDetector.getInitialValue(FailureDetector.java:81)
>     at org.apache.cassandra.gms.FailureDetector.<clinit>(FailureDetector.java:48)
>     ... 8 more
> ERROR [StorageServiceShutdownHook] 2014-02-21 14:45:57,754 CassandraDaemon.java (line
191) Exception in thread Thread[StorageServiceShutdownHook,5,main]
> java.lang.NoClassDefFoundError: Could not initialize class org.apache.cassandra.gms.Gossiper
>     at org.apache.cassandra.service.StorageService$1.runMayThrow(StorageService.java:550)
>     at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:28)
>     at java.lang.Thread.run(Thread.java:724)
> {noformat}
> Glancing at the code, this is because the FailureDetector logger isn't initialized when
the static initialization of {{INITIAL_VALUE}} happens.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message