Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0C4A6105FB for ; Sun, 17 May 2015 18:22:00 +0000 (UTC) Received: (qmail 51775 invoked by uid 500); 17 May 2015 18:21:59 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 51729 invoked by uid 500); 17 May 2015 18:21:59 -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 51718 invoked by uid 99); 17 May 2015 18:21:59 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 17 May 2015 18:21:59 +0000 Date: Sun, 17 May 2015 18:21:59 +0000 (UTC) From: "Colin Kuo (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CASSANDRA-9332) NPE when creating column family via thrift MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CASSANDRA-9332?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14547275#comment-14547275 ] Colin Kuo commented on CASSANDRA-9332: -------------------------------------- Yes, it can be reproduced repeatedly. As above description, this issue will happen if performing testing with EmbeddedCassandraServer using C* 2.0.6. Please refer the diff here https://gist.github.com/colinkuo/4bf1be5d9f5a693b2cd4 After applying this diff, performing the test by command "mvn clean compile -Dtest=CassandraClusterTest test" from root of hector project. By the way, you could ignore the change of "EmbeddedServerHelper.java" if your test machine is powerful enough :) Thanks! > NPE when creating column family via thrift > ------------------------------------------ > > Key: CASSANDRA-9332 > URL: https://issues.apache.org/jira/browse/CASSANDRA-9332 > Project: Cassandra > Issue Type: Bug > Components: Core > Environment: Oracle JDK 1.7.0_79 > Casandra 2.0.6 in single node > Ubuntu 14.04 > Reporter: Colin Kuo > Assignee: Tyler Hobbs > Priority: Minor > Labels: thrift > Fix For: 2.0.x > > > When triggering unit test "testAddDropColumnFamily()" in https://github.com/hector-client/hector/blob/master/core/src/test/java/me/prettyprint/cassandra/service/CassandraClusterTest.java > It occurs NPE when using *Cassandra 2.0.6* or later version. > {noformat} > 11:42:39,173 [Thrift:1] ERROR CustomTThreadPoolServer:212 - Error occurred during processing of message. > java.lang.NullPointerException > at org.apache.cassandra.db.RowMutation.add(RowMutation.java:112) > at org.apache.cassandra.service.MigrationManager.addSerializedKeyspace(MigrationManager.java:265) > at org.apache.cassandra.service.MigrationManager.announceNewColumnFamily(MigrationManager.java:213) > at org.apache.cassandra.thrift.CassandraServer.system_add_column_family(CassandraServer.java:1521) > at org.apache.cassandra.thrift.Cassandra$Processor$system_add_column_family.getResult(Cassandra.java:4300) > at org.apache.cassandra.thrift.Cassandra$Processor$system_add_column_family.getResult(Cassandra.java:4284) > at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:39) > at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:39) > at org.apache.cassandra.thrift.CustomTThreadPoolServer$WorkerProcess.run(CustomTThreadPoolServer.java:194) > at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) > at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) > at java.lang.Thread.run(Thread.java:745) > {noformat} > It seems that was introduced by fix of CASSANDRA-5631. -- This message was sent by Atlassian JIRA (v6.3.4#6332)