You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Gary Dusbabek (JIRA)" <ji...@apache.org> on 2010/06/02 16:49:42 UTC

[jira] Resolved: (CASSANDRA-521) NullPointerException in cassandra bootstrap after switch RandomParitioner to OrderPreservingPartioner

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

Gary Dusbabek resolved CASSANDRA-521.
-------------------------------------

    Resolution: Invalid

Closing this ticket as the behavior when changing partitioners has changed.  See CASSANDRA-1146 for details.

> NullPointerException in cassandra bootstrap  after switch RandomParitioner to OrderPreservingPartioner
> ------------------------------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-521
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-521
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>         Environment: $ uname -a
> Linux archlinux 2.6.31-ARCH #1 SMP PREEMPT Fri Oct 23 11:12:58 CEST 2009 i686 AMD Athlon(tm) 7750 Dual-Core Processor AuthenticAMD GNU/Linux
> $ java -version
> java version "1.6.0_0"
> OpenJDK Runtime Environment (IcedTea6 1.6.1) (ArchLinux-1.6.1-1-i686)
> OpenJDK Client VM (build 14.0-b16, mixed mode)
>            Reporter: Road Tang
>            Assignee: Gary Dusbabek
>            Priority: Minor
>             Fix For: 0.7
>
>         Attachments: 0001-remove-unused-BRAF-constructors.patch, 0002-introduce-notion-of-sstable-header-block-verify-cor.patch, 521-v1.patch
>
>
> NullPointerException in cassandra bootstrap  after switch RandomParitioner to OrderPreservingPartioner
> Steps:
> 1. Use RadomPartitionor, boot up cassandra to initialize the cluster data and various logs.
> 2. Put some data.
> 3. Shutdown cassandra, and modify the store-config.xml , change RandomPartitioner to OrderPreservingPartitioner
> 4. Restart cassandra
> Expected Result:
>  fail startup and tell the user Don't Do That ( from jbells).
> Actual Result:
> [roadt@archlinux apache-cassandra-incubating-0.4.0-src]$ bin/cassandra -f
> Listening for transport dt_socket at address: 8888
> DEBUG - Loading settings from bin/../conf/storage-conf.xml
> DEBUG - Syncing log with a period of 1000
> DEBUG - opening keyspace Keyspace1
> DEBUG - adding Super1 as 0
> DEBUG - adding Standard2 as 1
> DEBUG - adding Standard1 as 2
> DEBUG - adding StandardByUUID1 as 3
> DEBUG - adding LocationInfo as 4
> DEBUG - adding HintsColumnFamily as 5
> DEBUG - adding TermVectors as 6
> DEBUG - adding Documents as 7
> DEBUG - opening keyspace system
> DEBUG - INDEX LOAD TIME for /home/roadt/studies/web/apache/cassandra/apache-cassandra-incubating-0.4.0-src/cassandra/data/system/LocationInfo-5-Data.db: 20 ms.
> DEBUG - opening keyspace Lucandra
> DEBUG - INDEX LOAD TIME for /home/roadt/studies/web/apache/cassandra/apache-cassandra-incubating-0.4.0-src/cassandra/data/Lucandra/TermVectors-1-Data.db: 4 ms.
> DEBUG - INDEX LOAD TIME for /home/roadt/studies/web/apache/cassandra/apache-cassandra-incubating-0.4.0-src/cassandra/data/Lucandra/Documents-1-Data.db: 1 ms.
> INFO - Replaying cassandra/commitlog/CommitLog-1256823678738.log
> DEBUG - Replaying cassandra/commitlog/CommitLog-1256823678738.log starting at 125
> DEBUG - Reading mutation at 125
> DEBUG - replaying mutation for system.L: {ColumnFamily(LocationInfo [Generation,])}
> INFO - Flushing Memtable(LocationInfo)@29859324
> INFO - Completed flushing Memtable(LocationInfo)@29859324
> DEBUG - collecting Generation:false:4@4
> ERROR - Exception encountered during startup.
> java.lang.NullPointerException
> 	at org.apache.cassandra.db.SystemTable.initMetadata(SystemTable.java:117)
> 	at org.apache.cassandra.service.StorageService.start(StorageService.java:274)
> 	at org.apache.cassandra.service.CassandraServer.start(CassandraServer.java:72)
> 	at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:95)
> 	at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:167)
> Exception encountered during startup.
> java.lang.NullPointerException
> 	at org.apache.cassandra.db.SystemTable.initMetadata(SystemTable.java:117)
> 	at org.apache.cassandra.service.StorageService.start(StorageService.java:274)
> 	at org.apache.cassandra.service.CassandraServer.start(CassandraServer.java:72)
> 	at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:95)
> 	at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:167)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.