cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan Ellis (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CASSANDRA-521) NullPointerException in cassandra bootstrap after switch RandomParitioner to OrderPreservingPartioner
Date Fri, 06 Nov 2009 18:54:32 GMT

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

Jonathan Ellis commented on CASSANDRA-521:
------------------------------------------

> Otherwise, we run the risk of introducing hard-to-trace bugs if somebody operates on
a system table using the wrong partitioner. This is possible in SSTableReader.open(filename)
and SSTableWriter.renameAndOpen(filename). 

Maybe a better solution then would be to write the partitioner type as a header to the sstable
to prevent this.  This would avoid having to hardcode the systemtable partitioner too.

> I should also point out that forcing the system table to use OPP changes the data format
for anybody using the RandomPartitioner.

You're right.  So either way let's put this off until post-0.5 since we've been telling people
we won't change data format for this release.

> 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
>    Affects Versions: 0.4
>         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
>         Attachments: 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.


Mime
View raw message