You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Alex Petrov (JIRA)" <ji...@apache.org> on 2016/11/17 13:31:58 UTC

[jira] [Updated] (CASSANDRA-12757) NPE if allocate_tokens_for_keyspace is typo/doesn't exist.

     [ https://issues.apache.org/jira/browse/CASSANDRA-12757?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alex Petrov updated CASSANDRA-12757:
------------------------------------
    Labels: lhf  (was: )

> NPE if allocate_tokens_for_keyspace is typo/doesn't exist.
> ----------------------------------------------------------
>
>                 Key: CASSANDRA-12757
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-12757
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Configuration
>            Reporter: Jeremiah Jordan
>              Labels: lhf
>             Fix For: 3.0.x, 3.x
>
>
> If the keyspace specified in allocate_tokens_for_keyspace does not exist you get an NPE.  Should probably have a better error here letting people know what the issue was.
> {code}
> INFO  21:07:22,582  StorageService.java:1152 - JOINING: getting bootstrap token
> Exception (java.lang.NullPointerException) encountered during startup: null
> ERROR 21:07:22,590  CassandraDaemon.java:709 - Exception encountered during startup
> java.lang.NullPointerException: null
>        at org.apache.cassandra.db.Keyspace.createReplicationStrategy(Keyspace.java:325) ~[cassandra-all-3.0.8.jar:3.0.8]
>        at org.apache.cassandra.db.Keyspace.<init>(Keyspace.java:298) ~[cassandra-all-3.0.8.jar:3.0.8]
>        at org.apache.cassandra.db.Keyspace.open(Keyspace.java:129) ~[cassandra-all-3.0.8.jar:3.0.8]
>        at org.apache.cassandra.db.Keyspace.open(Keyspace.java:106) ~[cassandra-all-3.0.8.jar:3.0.8]
>        at org.apache.cassandra.dht.BootStrapper.allocateTokens(BootStrapper.java:201) ~[cassandra-all-3.0.8.jar:3.0.8]
>        at org.apache.cassandra.dht.BootStrapper.getBootstrapTokens(BootStrapper.java:173) ~[cassandra-all-3.0.8:3.0.8]
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)