[
https://issues.apache.org/jira/browse/CASSANDRA-2416?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jonathan Ellis updated CASSANDRA-2416:
--------------------------------------
Attachment: 2416-v2.txt
Because attempting to cache a DK that is really just a token is a semantic
error that we shouldn't just paper over. v2 adds an assert to make that clear.
> NullPointerException in CacheWriter.saveCache()
> -----------------------------------------------
>
> Key: CASSANDRA-2416
> URL: https://issues.apache.org/jira/browse/CASSANDRA-2416
> Project: Cassandra
> Issue Type: Bug
> Components: Core
> Affects Versions: 0.7.0
> Environment: linux
> Reporter: Shotaro Kamio
> Assignee: Jonathan Ellis
> Priority: Minor
> Fix For: 0.7.5
>
> Attachments: 2416-v2.txt, 2416.txt
>
>
> I've seen NullPointerException of CacheWriter in our cluster (replication 3).
> ERROR [CompactionExecutor:1] 2011-04-05 09:57:42,968
> AbstractCassandraDaemon.java (line 112) Fatal exception in thread
> Thread[CompactionExecutor:1,1,main]
> java.lang.RuntimeException: java.lang.NullPointerException
> at
> org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:34)
> at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
> at java.util.concurrent.FutureTask.run(FutureTask.java:138)
> 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)
> Caused by: java.lang.NullPointerException
> at
> org.apache.cassandra.utils.ByteBufferUtil.writeWithLength(ByteBufferUtil.java:275)
> at
> org.apache.cassandra.io.sstable.CacheWriter.saveCache(CacheWriter.java:84)
> at
> org.apache.cassandra.db.CompactionManager$10.runMayThrow(CompactionManager.java:960)
> at
> org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:30)
> ... 6 more
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira