Return-Path: Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: (qmail 13725 invoked from network); 16 Apr 2010 20:47:50 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 16 Apr 2010 20:47:50 -0000 Received: (qmail 477 invoked by uid 500); 16 Apr 2010 20:47:50 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 466 invoked by uid 500); 16 Apr 2010 20:47:50 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 445 invoked by uid 99); 16 Apr 2010 20:47:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Apr 2010 20:47:50 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Apr 2010 20:47:47 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o3GKlPaW007313 for ; Fri, 16 Apr 2010 16:47:26 -0400 (EDT) Message-ID: <31718658.17181271450845917.JavaMail.jira@thor> Date: Fri, 16 Apr 2010 16:47:25 -0400 (EDT) From: "Ted Zlatanov (JIRA)" To: commits@cassandra.apache.org Subject: [jira] Reopened: (CASSANDRA-995) restarting node crashes with NPE when, while replaying the commitlog, the cfMetaData is requested In-Reply-To: <20004137.16871271449945255.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CASSANDRA-995?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ted Zlatanov reopened CASSANDRA-995: ------------------------------------ I wouldn't report it as a bug if it wasn't on a commitlog written by the same version of the software. All the steps (1,2,3) are on the same SVN revision I stated in the Environment section. > restarting node crashes with NPE when, while replaying the commitlog, the cfMetaData is requested > ------------------------------------------------------------------------------------------------- > > Key: CASSANDRA-995 > URL: https://issues.apache.org/jira/browse/CASSANDRA-995 > Project: Cassandra > Issue Type: Bug > Affects Versions: 0.7 > Environment: SVN rev 935070 > Reporter: Ted Zlatanov > > Removing the commitlog directory completely fixes this. I can reliably reproduce it by 1) starting and configuring a schema with one keyspace, one super CF with LongType supercolumns; 2) inserting data; 3) shutting down and restarting the node. > Here's my schema expressed in cassidy.pl, should be obvious what the parameters are: > ./cassidy.pl -server X -port Y -keyspace system 'kdefine test org.apache.cassandra.locator.RackUnawareStrategy 2 org.apache.cassandra.locator.EndPointSnitch' > ./cassidy.pl -server X -port Y -keyspace test 'fdefine Status Super LongType BytesType comment=statuschanges,row_cache_size=0,key_cache_size=20000' > The problem seems to be related to CASSANDRA-44 as it happens when the CF metadata is requested but I don't know what's causing it. > 10/04/16 15:25:11 INFO commitlog.CommitLog: Replaying /home/cassandra/commitlog/CommitLog-1271449410100.log, /home/cassandra/commitlog/CommitLog-1271449378151.log, /home/cassandra/commitlog/CommitLog-1271449415800.log > java.lang.reflect.InvocationTargetException > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at org.apache.commons.daemon.support.DaemonLoader.load(DaemonLoader.java:160) > Caused by: java.lang.NullPointerException > at org.apache.cassandra.db.Table.(Table.java:261) > at org.apache.cassandra.db.Table.open(Table.java:102) > at org.apache.cassandra.db.commitlog.CommitLog.recover(CommitLog.java:233) > at org.apache.cassandra.db.commitlog.CommitLog.recover(CommitLog.java:172) > at org.apache.cassandra.thrift.CassandraDaemon.setup(CassandraDaemon.java:104) > at org.apache.cassandra.thrift.CassandraDaemon.init(CassandraDaemon.java:151) > ... 5 more -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira