You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Jonathan Ellis (JIRA)" <ji...@apache.org> on 2012/05/04 00:44:49 UTC

[jira] [Resolved] (CASSANDRA-4218) NPE thrown after switching to LeveledCompactionStrategy

     [ https://issues.apache.org/jira/browse/CASSANDRA-4218?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jonathan Ellis resolved CASSANDRA-4218.
---------------------------------------

    Resolution: Not A Problem

If you don't have enough spare space to re-level all your sstables at once (or Cassandra thinks you don't), you can move some of them off-server, level the rest, then copy the others back and inject them with {{nodetool refresh}} (no restart required).  Or, maybe you have some snapshots you can clean out to free up space.

Finally, running without -ea makes troubleshooting harder. :)
                
> NPE thrown after switching to LeveledCompactionStrategy
> -------------------------------------------------------
>
>                 Key: CASSANDRA-4218
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-4218
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.0.5, 1.0.9
>         Environment: SunOS corbina.local 5.11 joyent_ i86pc i386 i86pc Solaris
>            Reporter: Alex Whittaker
>
> After running out of disk space on our six node Cassandra cluster we switched to a Levelled Compaction Strategy. The servers began to degrade performance accruing a large number of pending tasks - we noticed that there was a NullPointerException appearing in the system log:
> ERROR [CompactionExecutor:22] 2012-05-03 20:34:38,931 AbstractCassandraDaemon.java (line 139) Fatal exception in thread Thread[CompactionExecutor:22,1,main]
> java.lang.NullPointerException
>         at java.io.File.<init>(File.java:222)
>         at org.apache.cassandra.db.ColumnFamilyStore.getTempSSTablePath(ColumnFamilyStore.java:642)
>         at org.apache.cassandra.db.ColumnFamilyStore.getTempSSTablePath(ColumnFamilyStore.java:653)
>         at org.apache.cassandra.db.ColumnFamilyStore.createCompactionWriter(ColumnFamilyStore.java:1892)
>         at org.apache.cassandra.db.compaction.CompactionTask.execute(CompactionTask.java:153)
>         at org.apache.cassandra.db.compaction.LeveledCompactionTask.execute(LeveledCompactionTask.java:57)
>         at org.apache.cassandra.db.compaction.CompactionManager$1.call(CompactionManager.java:135)
>         at org.apache.cassandra.db.compaction.CompactionManager$1.call(CompactionManager.java:115)
>         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)

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