You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by Ramesh Natarajan <ra...@gmail.com> on 2011/11/01 23:56:11 UTC
Internal error processing get: Null pointer exception
We have a 8 node cassandra cluster running cassandra 1.0.0. After a
while in our load testing we are seeing Null pointer exception on
gets. Attached is the stack trace
ERROR [pool-2-thread-2241] 2011-11-01 15:52:19,335 Cassandra.java
(line 2999) Internal error processing get
java.lang.NullPointerException
at org.apache.cassandra.thrift.CassandraServer.readColumnFamily(CassandraServer.java:147)
at org.apache.cassandra.thrift.CassandraServer.internal_get(CassandraServer.java:383)
at org.apache.cassandra.thrift.CassandraServer.get(CassandraServer.java:401)
at org.apache.cassandra.thrift.Cassandra$Processor$get.process(Cassandra.java:2989)
at org.apache.cassandra.thrift.Cassandra$Processor.process(Cassandra.java:2889)
at org.apache.cassandra.thrift.CustomTThreadPoolServer$WorkerProcess.run(CustomTThreadPoolServer.java:187)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Is this a known issue?
thanks
Ramesh
Re: Internal error processing get: Null pointer exception
Posted by Jonathan Ellis <jb...@gmail.com>.
Absolutely right. Patch attached to
https://issues.apache.org/jira/browse/CASSANDRA-3449
On Wed, Nov 2, 2011 at 2:09 PM, Erik Forkalsrud <ef...@cj.com> wrote:
> On 11/01/2011 09:02 PM, Jonathan Ellis wrote:
>>
>> That doesn't make sense to me. CS:147 is
>>
>> columnFamilyKeyMap.put(row.key, row.cf);
>>
>> where cFKM is
>>
>> Map<DecoratedKey, ColumnFamily> columnFamilyKeyMap = new
>> HashMap<DecoratedKey, ColumnFamily>();
>>
>> So cFKM can't be null, and HashMap accomodates both null key and null
>> value, so I'm not sure what there is to thorw NPE.
>
> it must be row == null
>
--
Jonathan Ellis
Project Chair, Apache Cassandra
co-founder of DataStax, the source for professional Cassandra support
http://www.datastax.com
Re: Internal error processing get: Null pointer exception
Posted by Erik Forkalsrud <ef...@cj.com>.
On 11/01/2011 09:02 PM, Jonathan Ellis wrote:
> That doesn't make sense to me. CS:147 is
>
> columnFamilyKeyMap.put(row.key, row.cf);
>
> where cFKM is
>
> Map<DecoratedKey, ColumnFamily> columnFamilyKeyMap = new
> HashMap<DecoratedKey, ColumnFamily>();
>
> So cFKM can't be null, and HashMap accomodates both null key and null
> value, so I'm not sure what there is to thorw NPE.
it must be row == null
Re: Internal error processing get: Null pointer exception
Posted by Ramesh Natarajan <ra...@gmail.com>.
Are we doing anything wrong here? or can this be a bug in cassandra?
thanks
Ramesh
On Tue, Nov 1, 2011 at 11:02 PM, Jonathan Ellis <jb...@gmail.com> wrote:
> That doesn't make sense to me. CS:147 is
>
> columnFamilyKeyMap.put(row.key, row.cf);
>
> where cFKM is
>
> Map<DecoratedKey, ColumnFamily> columnFamilyKeyMap = new
> HashMap<DecoratedKey, ColumnFamily>();
>
> So cFKM can't be null, and HashMap accomodates both null key and null
> value, so I'm not sure what there is to thorw NPE.
>
> On Tue, Nov 1, 2011 at 5:56 PM, Ramesh Natarajan <ra...@gmail.com> wrote:
>> We have a 8 node cassandra cluster running cassandra 1.0.0. After a
>> while in our load testing we are seeing Null pointer exception on
>> gets. Attached is the stack trace
>>
>>
>> ERROR [pool-2-thread-2241] 2011-11-01 15:52:19,335 Cassandra.java
>> (line 2999) Internal error processing get
>> java.lang.NullPointerException
>> at org.apache.cassandra.thrift.CassandraServer.readColumnFamily(CassandraServer.java:147)
>> at org.apache.cassandra.thrift.CassandraServer.internal_get(CassandraServer.java:383)
>> at org.apache.cassandra.thrift.CassandraServer.get(CassandraServer.java:401)
>> at org.apache.cassandra.thrift.Cassandra$Processor$get.process(Cassandra.java:2989)
>> at org.apache.cassandra.thrift.Cassandra$Processor.process(Cassandra.java:2889)
>> at org.apache.cassandra.thrift.CustomTThreadPoolServer$WorkerProcess.run(CustomTThreadPoolServer.java:187)
>> at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>> at java.lang.Thread.run(Thread.java:662)
>>
>> Is this a known issue?
>>
>> thanks
>> Ramesh
>>
>
>
>
> --
> Jonathan Ellis
> Project Chair, Apache Cassandra
> co-founder of DataStax, the source for professional Cassandra support
> http://www.datastax.com
>
Re: Internal error processing get: Null pointer exception
Posted by Jonathan Ellis <jb...@gmail.com>.
That doesn't make sense to me. CS:147 is
columnFamilyKeyMap.put(row.key, row.cf);
where cFKM is
Map<DecoratedKey, ColumnFamily> columnFamilyKeyMap = new
HashMap<DecoratedKey, ColumnFamily>();
So cFKM can't be null, and HashMap accomodates both null key and null
value, so I'm not sure what there is to thorw NPE.
On Tue, Nov 1, 2011 at 5:56 PM, Ramesh Natarajan <ra...@gmail.com> wrote:
> We have a 8 node cassandra cluster running cassandra 1.0.0. After a
> while in our load testing we are seeing Null pointer exception on
> gets. Attached is the stack trace
>
>
> ERROR [pool-2-thread-2241] 2011-11-01 15:52:19,335 Cassandra.java
> (line 2999) Internal error processing get
> java.lang.NullPointerException
> at org.apache.cassandra.thrift.CassandraServer.readColumnFamily(CassandraServer.java:147)
> at org.apache.cassandra.thrift.CassandraServer.internal_get(CassandraServer.java:383)
> at org.apache.cassandra.thrift.CassandraServer.get(CassandraServer.java:401)
> at org.apache.cassandra.thrift.Cassandra$Processor$get.process(Cassandra.java:2989)
> at org.apache.cassandra.thrift.Cassandra$Processor.process(Cassandra.java:2889)
> at org.apache.cassandra.thrift.CustomTThreadPoolServer$WorkerProcess.run(CustomTThreadPoolServer.java:187)
> at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
> at java.lang.Thread.run(Thread.java:662)
>
> Is this a known issue?
>
> thanks
> Ramesh
>
--
Jonathan Ellis
Project Chair, Apache Cassandra
co-founder of DataStax, the source for professional Cassandra support
http://www.datastax.com