[
https://issues.apache.org/jira/browse/CASSANDRA-3385?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jonathan Ellis updated CASSANDRA-3385:
--------------------------------------
Attachment: 3385.txt
One possible avenue for this is that if startup takes long enough (due to CL
replay + sstable index sampling, probably) that compactions start before the
upgrade hint purge, compaction can generation "new" 0.8 hints after we try to
delete them. Patch to switch to truncate to avoid this, although
CASSANDRA-3399 is open to make truncate more bulletproof in that situation
itself. In the meantime, removing the hints columnfamily manually before
restarting should fix the problem.
Also added some debug logging to the hint purge in r1189221.
> NPE in hinted handoff
> ---------------------
>
> Key: CASSANDRA-3385
> URL: https://issues.apache.org/jira/browse/CASSANDRA-3385
> Project: Cassandra
> Issue Type: Bug
> Reporter: Yang Yang
> Priority: Minor
> Fix For: 1.0.1
>
> Attachments:
> 0001-Changed-assertions-in-delivery-of-hints-to-a-check-t.patch, 3385.txt
>
>
> I'm using the current HEAD of 1.0.0 github branch, and I'm still seeing this
> error, not sure if it's this bug or another one.
> INFO [HintedHandoff:1] 2011-10-19 12:43:17,674 HintedHandOffManager.java
> (line 263) Started hinted handoff for token: 11342745564
> 0312821154458202477256070484 with IP: /10.39.85.140
> ERROR [HintedHandoff:1] 2011-10-19 12:43:17,885 AbstractCassandraDaemon.java
> (line 133) Fatal exception in thread Thread[HintedHan
> doff:1,1,main]
> java.lang.RuntimeException: java.lang.NullPointerException
> at
> org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:34)
> 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.db.HintedHandOffManager.deliverHintsToEndpoint(HintedHandOffManager.java:289)
> at
> org.apache.cassandra.db.HintedHandOffManager.access$100(HintedHandOffManager.java:81)
> at
> org.apache.cassandra.db.HintedHandOffManager$2.runMayThrow(HintedHandOffManager.java:337)
> at
> org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:30)
> ... 3 more
> ERROR [HintedHandoff:1] 2011-10-19 12:43:17,886 AbstractCassandraDaemon.java
> (line 133) Fatal exception in thread Thread[HintedHandoff:1,1,main]
> java.lang.RuntimeException: java.lang.NullPointerException
> at
> org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:34)
> 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.db.HintedHandOffManager.deliverHintsToEndpoint(HintedHandOffManager.java:289)
> at
> org.apache.cassandra.db.HintedHandOffManager.access$100(HintedHandOffManager.java:81)
> at
> org.apache.cassandra.db.HintedHandOffManager$2.runMayThrow(HintedHandOffManager.java:337)
> at
> org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:30)
> ... 3 more
> this could possibly be related to #3291
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira