cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leonid Shalupov (JIRA)" <>
Subject [jira] [Commented] (CASSANDRA-8544) Cassandra could not start with NPE in ColumnFamilyStore.removeUnfinishedCompactionLeftovers
Date Mon, 05 Jan 2015 17:35:35 GMT


Leonid Shalupov commented on CASSANDRA-8544:

I've seen it two times locally, one time it was reported by the customer of JetBrains Upsource.

It always with compactions_in_progress files, see exception below:
14:16:38.232 [MemtableFlushWriter:4] ERROR o.a.c.service.CassandraDaemon - Exception in thread
Thread[MemtableFlushWriter:4,5,main] java.nio.file.FileSystemException: C:\Tools\Upsource\data\cassandra\data\system\compactions_in_progress-55080a
b05d9c388690a4acb25fe1f77b\system-compactions_in_progress-tmp-ka-13253-Statistics.db: Der
Prozess kann nicht auf die Datei zugreifen, da sie von ein
em anderen Prozess verwendet wird.

        at ~[cassandra-all-2.1.1.jar:2.1.1]
        at ~[cassandra-all-2.1.1.jar:2.1.1]
        at ~[cassandra-all-2.1.1.jar:2.1.1]
        at ~[cassandra-all-2.1.1.jar:2.1.1]
        at ~[cassandra-all-2.1.1.jar:2.1.1]
        at org.apache.cassandra.db.Memtable$FlushRunnable.writeSortedContents(
        at org.apache.cassandra.db.Memtable$FlushRunnable.runWith( ~[cassandra-all-2.1.1.jar:2.1.1]
        at ~[cassandra-all-2.1.1.jar:2.1.1]
        at org.apache.cassandra.db.ColumnFamilyStore$
        at java.util.concurrent.ThreadPoolExecutor.runWorker(
        at java.util.concurrent.ThreadPoolExecutor$
        at ~[na:1.7.0_71]

This particular exception seems to be fixed by turning off AV and Windows Search, but it's
no good to fail on the next start.

> How are you resolving / working around this? Does it work after another attempt to restart?
No workarounds attempted. It doesn't work after another restart.

> Attaching a patch that should print out some more details on the NPE if you can reproduce
it consistently.
Unfortunately I can't reproduce it consistently, so no luck here.

> Cassandra could not start with NPE in ColumnFamilyStore.removeUnfinishedCompactionLeftovers
> -------------------------------------------------------------------------------------------
>                 Key: CASSANDRA-8544
>                 URL:
>             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
> It happens sometimes after restarts caused by undeletable files under Windows.
> {quote}
> Caused by: java.lang.NullPointerException
>     at org.apache.cassandra.db.ColumnFamilyStore.removeUnfinishedCompactionLeftovers(
>     at org.apache.cassandra.service.CassandraDaemon.setup(
>     at org.apache.cassandra.service.CassandraDaemon.init(
>     at com.jetbrains.cassandra.service.CassandraServiceMain.start(
>     ... 6 more
> {quote}

This message was sent by Atlassian JIRA

View raw message