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 <rames...@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

Reply via email to