cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeremiah Jordan (JIRA)" <>
Subject [jira] [Created] (CASSANDRA-12757) NPE if allocate_tokens_for_keyspace is typo/doesn't exist.
Date Thu, 06 Oct 2016 21:27:20 GMT
Jeremiah Jordan created CASSANDRA-12757:

             Summary: NPE if allocate_tokens_for_keyspace is typo/doesn't exist.
                 Key: CASSANDRA-12757
             Project: Cassandra
          Issue Type: Bug
          Components: Configuration
            Reporter: Jeremiah Jordan
             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.

INFO  21:07:22,582 - JOINING: getting bootstrap token
Exception (java.lang.NullPointerException) encountered during startup: null
ERROR 21:07:22,590 - Exception encountered during startup
java.lang.NullPointerException: null
       at org.apache.cassandra.db.Keyspace.createReplicationStrategy( ~[cassandra-all-3.0.8.jar:3.0.8]
       at org.apache.cassandra.db.Keyspace.<init>( ~[cassandra-all-3.0.8.jar:3.0.8]
       at ~[cassandra-all-3.0.8.jar:3.0.8]
       at ~[cassandra-all-3.0.8.jar:3.0.8]
       at org.apache.cassandra.dht.BootStrapper.allocateTokens( ~[cassandra-all-3.0.8.jar:3.0.8]
       at org.apache.cassandra.dht.BootStrapper.getBootstrapTokens(

This message was sent by Atlassian JIRA

View raw message