[ https://issues.apache.org/jira/browse/CASSANDRA-9332?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14544377#comment-14544377 ]
Tyler Hobbs edited comment on CASSANDRA-9332 at 5/14/15 9:22 PM: ----------------------------------------------------------------- I can't reproduce this with either the Hector test or with a basic Thrift-based test that does the same operations in a loop. Can you reproduce this reliably? Perhaps there's a specific way to run the Hector test that reproduces it? Just looking at the stacktrace, it seems like the NPE is due to trying to call {{modifications.put()}} with a null key, which would require that the existing row's {{CFMetadata}} has a null {{cfId}}, and I'm not sure how that can happen. was (Author: thobbs): I can't reproduce this with either the Hector test or with a basic Thrift-based test that does the same operations in a loop. Can you reproduce this reliably? Just looking at the stacktrace, it seems like the NPE is due to trying to call {{modifications.put()}} with a null key, which would require that the existing row's {{CFMetadata}} has a null {{cfId}}, and I'm not sure how that can happen. > 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)