> I am getting following exception:
>
> java.lang.NullPointerException
>         at org.apache.cassandra.db.Table.apply(Table.java:407)

Are you triggering this repeatedly without difficulty?

Can you run with the attached patch (indentation is messed up in the
patch though - sorry, no time to fix it now)? Hopefully it should emit
(at level error) in the log a message indication it failed to obtain a
column family store, followed by a list of all known column family
stores, prior to bailing with the same exception.

Is this happening on every node or just one? When did this start - did
it start right after a schema change (keyspace addition)?

(I'm just grasping at straws based on a cursory examination; I may be
barking up the wrong tree completely.)

-- 
/ Peter Schuller
Index: src/java/org/apache/cassandra/db/Table.java
===================================================================
--- src/java/org/apache/cassandra/db/Table.java	(revision 979361)
+++ src/java/org/apache/cassandra/db/Table.java	(working copy)
@@ -404,6 +404,13 @@
             {
                 Memtable memtableToFlush;
                 ColumnFamilyStore cfs = columnFamilyStores.get(columnFamily.name());
+	            if (cfs == null) {
+		            logger.warn("failed to find column family store for column family [" + columnFamily.name() + "]");
+		            logger.warn("complete list of column family stores follow:");
+		            for (ColumnFamilyStore cf : columnFamilyStores.values()) {
+			            logger.warn("  [" + cf.getColumnFamilyName() + "]");
+		            }
+	            }
                 if ((memtableToFlush=cfs.apply(mutation.key(), columnFamily)) != null)
                     memtablesToFlush.put(cfs, memtableToFlush);
 

Reply via email to