You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Joshua McKenzie (JIRA)" <ji...@apache.org> on 2015/01/07 21:36:34 UTC
[jira] [Updated] (CASSANDRA-8544) Cassandra could not start with
NPE in ColumnFamilyStore.removeUnfinishedCompactionLeftovers
[ https://issues.apache.org/jira/browse/CASSANDRA-8544?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Joshua McKenzie updated CASSANDRA-8544:
---------------------------------------
Attachment: 8544_v1.txt
If turning off AV and Windows Search consistently fixes this I consider this an external/environment problem and not a problem with our code-base w/regards to stopping. Pre 3.0 (and w/memory-mapped I/O when we go back down that route), file sharing violations like this from outside programs are, by default, a problem we're going to stop the database for rather than allowing failed deletions to potentially fill a drive on a node. If you'd prefer to allow the system to continue you can reference the following: [one|http://www.datastax.com/documentation/cassandra/2.0/cassandra/configuration/configCassandra_yaml_r.html] - [two|http://www.datastax.com/dev/blog/handling-disk-failures-in-cassandra-1-2].
At the very least, you need to exclude your cassandra data and logs folder from AV scanning and also [remove it from indexing|http://windows.microsoft.com/en-us/windows/improve-windows-searches-using-index-faq#1TC=windows-7].
Attaching a v1 that wraps the NPE and instead throws an FSReadError and points to log file for more information, since our original NPE error isn't terribly useful.
> Cassandra could not start with NPE in ColumnFamilyStore.removeUnfinishedCompactionLeftovers
> -------------------------------------------------------------------------------------------
>
> Key: CASSANDRA-8544
> URL: https://issues.apache.org/jira/browse/CASSANDRA-8544
> Project: Cassandra
> Issue Type: Bug
> Environment: Windows
> Reporter: Leonid Shalupov
> Assignee: Joshua McKenzie
> Labels: windows
> Fix For: 2.1.3
>
> Attachments: 8544_show_npe.txt, 8544_v1.txt
>
>
> It happens sometimes after restarts caused by undeletable files under Windows.
> {quote}
> Caused by: java.lang.NullPointerException
> at org.apache.cassandra.db.ColumnFamilyStore.removeUnfinishedCompactionLeftovers(ColumnFamilyStore.java:579)
> at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:232)
> at org.apache.cassandra.service.CassandraDaemon.init(CassandraDaemon.java:377)
> at com.jetbrains.cassandra.service.CassandraServiceMain.start(CassandraServiceMain.java:81)
> ... 6 more
> {quote}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)