You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Shotaro Kamio (JIRA)" <ji...@apache.org> on 2011/04/05 11:30:05 UTC
[jira] [Created] (CASSANDRA-2416) NullPointerException in
CacheWriter.saveCache()
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.4
Environment: linux
Reporter: Shotaro Kamio
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
[jira] [Commented] (CASSANDRA-2416) NullPointerException in
CacheWriter.saveCache()
Posted by "Sylvain Lebresne (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-2416?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13021097#comment-13021097 ]
Sylvain Lebresne commented on CASSANDRA-2416:
---------------------------------------------
+1
> 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
[jira] [Commented] (CASSANDRA-2416) NullPointerException in
CacheWriter.saveCache()
Posted by "Hudson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-2416?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13021154#comment-13021154 ]
Hudson commented on CASSANDRA-2416:
-----------------------------------
Integrated in Cassandra-0.7 #439 (See [https://hudson.apache.org/hudson/job/Cassandra-0.7/439/])
avoid caching token-only decoratedkeys
patch by jbellis; reviewed by slebresne for CASSANDRA-2416
> 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
[jira] [Updated] (CASSANDRA-2416) NullPointerException in
CacheWriter.saveCache()
Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-2416?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jonathan Ellis updated CASSANDRA-2416:
--------------------------------------
Attachment: 2416.txt
Patch to avoid storing DecoratedKeys with null key (which are generated by getRangeSlice) in the key cache.
> 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
[jira] [Updated] (CASSANDRA-2416) NullPointerException in
CacheWriter.saveCache()
Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-2416?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jonathan Ellis updated CASSANDRA-2416:
--------------------------------------
Reviewer: skamio
Priority: Minor (was: Major)
Affects Version/s: (was: 0.7.4)
0.7.0
Fix Version/s: 0.7.5
Assignee: Jonathan Ellis
> 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
>
>
> 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
[jira] [Commented] (CASSANDRA-2416) NullPointerException in
CacheWriter.saveCache()
Posted by "Sylvain Lebresne (JIRA)" <ji...@apache.org>.
[ 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
[jira] [Updated] (CASSANDRA-2416) NullPointerException in
CacheWriter.saveCache()
Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
[ 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