cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ZhaoYang (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (CASSANDRA-12958) Cassandra Not Starting NullPointerException at org.apache.cassandra.db.index.SecondaryIndex.createInstance
Date Wed, 12 Jul 2017 07:16:00 GMT

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

ZhaoYang edited comment on CASSANDRA-12958 at 7/12/17 7:15 AM:
---------------------------------------------------------------

In certain cases, {{ColumnDefinition.indexOptions}} could be {{null}}.  IMO, adding a null
check in {{ColumnDefinition constructor}} should be sufficient. It only affects 2.2


was (Author: jasonstack):
In certain cases, {{ColumnDefinition.indexOptions}} could be {{null}}.  IMO, adding a null
check in {{ColumnDefinition constructor}} should be sufficient 

> Cassandra Not Starting NullPointerException at org.apache.cassandra.db.index.SecondaryIndex.createInstance
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-12958
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-12958
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>         Environment: CentOS
>            Reporter: Ashraful Islam
>              Labels: Bug, not_start, secondary_index
>
> Whole Process of this issue is given below : 
> # Dropped secondary index.
> # Run Repair on cluster.
> # After 15 days later of dropping index, below configuration changed in Cassandra.yaml
:
> index_summary_resize_interval_in_minutes: -1 
> (cause While adding nodes it was taking a lot of time to redistribute index)
> # Rolling restart all nodes.
> # While adding fresh node, live nodes were going down.
> After two nodes are down, we stopped node adding process. 
> This is the error Cassandra throws while restarting down nodes in System.log: 
> {noformat}
> INFO  [main] 2016-11-27 00:51:48,220 ColumnFamilyStore.java:382 - Initializing ringid.verifiedmobile
> ERROR [main] 2016-11-27 00:51:48,236 CassandraDaemon.java:651 - Exception encountered
during startup
> java.lang.NullPointerException: null
>     at org.apache.cassandra.db.index.SecondaryIndex.createInstance(SecondaryIndex.java:378)
~[apache-cassandra-2.2.4.jar:2.2.4]
>     at org.apache.cassandra.db.index.SecondaryIndexManager.addIndexedColumn(SecondaryIndexManager.java:279)
~[apache-cassandra-2.2.4.jar:2.2.4]
>     at org.apache.cassandra.db.ColumnFamilyStore.(ColumnFamilyStore.java:407) ~[apache-cassandra-2.2.4.jar:2.2.4]
>     at org.apache.cassandra.db.ColumnFamilyStore.(ColumnFamilyStore.java:354) ~[apache-cassandra-2.2.4.jar:2.2.4]
>     at org.apache.cassandra.db.ColumnFamilyStore.createColumnFamilyStore(ColumnFamilyStore.java:535)
~[apache-cassandra-2.2.4.jar:2.2.4]
>     at org.apache.cassandra.db.ColumnFamilyStore.createColumnFamilyStore(ColumnFamilyStore.java:511)
~[apache-cassandra-2.2.4.jar:2.2.4]
>     at org.apache.cassandra.db.Keyspace.initCf(Keyspace.java:342) ~[apache-cassandra-2.2.4.jar:2.2.4]
>     at org.apache.cassandra.db.Keyspace.(Keyspace.java:270) ~[apache-cassandra-2.2.4.jar:2.2.4]
>     at org.apache.cassandra.db.Keyspace.open(Keyspace.java:116) ~[apache-cassandra-2.2.4.jar:2.2.4]
>     at org.apache.cassandra.db.Keyspace.open(Keyspace.java:93) ~[apache-cassandra-2.2.4.jar:2.2.4]
>     at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:256) [apache-cassandra-2.2.4.jar:2.2.4]
>     at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:529)
[apache-cassandra-2.2.4.jar:2.2.4]
>     at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:638) [apache-cassandra-2.2.4.jar:2.2.4]
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org


Mime
View raw message