You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Sylvain Lebresne (JIRA)" <ji...@apache.org> on 2011/04/08 23:42:06 UTC

[jira] [Commented] (CASSANDRA-2416) NullPointerException in CacheWriter.saveCache()

    [ https://issues.apache.org/jira/browse/CASSANDRA-2416?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13017667#comment-13017667 ] 

Sylvain Lebresne commented on CASSANDRA-2416:
---------------------------------------------

Why not do that in cacheKey directly to be sure we don't miss places ? 

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