cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeremiah Jordan (JIRA)" <>
Subject [jira] [Updated] (CASSANDRA-5605) Crash caused by insufficient disk space to flush
Date Mon, 16 Sep 2013 16:30:54 GMT


Jeremiah Jordan updated CASSANDRA-5605:

    Reproduced In: 1.2.8, 1.2.6, 1.2.4  (was: 1.2.4, 1.2.6, 1.2.8)
    Since Version: 1.2.0 beta 1
> Crash caused by insufficient disk space to flush
> ------------------------------------------------
>                 Key: CASSANDRA-5605
>                 URL:
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.2.5
>         Environment: java version "1.7.0_15"
>            Reporter: Dan Hendry
>            Priority: Minor
>             Fix For: 2.0.1
> A few times now I have seen our Cassandra nodes crash by running themselves out of memory.
It starts with the following exception:
> {noformat}
> ERROR [FlushWriter:13000] 2013-05-31 11:32:02,350 (line 164) Exception
in thread Thread[FlushWriter:13000,5,main]
> java.lang.RuntimeException: Insufficient disk space to write 8042730 bytes
>         at
>         at
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(
>         at java.util.concurrent.ThreadPoolExecutor$
>         at
> {noformat} 
> After which, it seems the MemtablePostFlusher stage gets stuck and no further memtables
get flushed: 
> {noformat} 
> INFO [ScheduledTasks:1] 2013-05-31 11:59:12,467 (line 68) MemtablePostFlusher
              1        32         0
> INFO [ScheduledTasks:1] 2013-05-31 11:59:12,469 (line 73) CompactionManager
                1         2
> {noformat} 
> What makes this ridiculous is that, at the time, the data directory on this node had
981GB free disk space (as reported by du). We primarily use STCS and at the time the aforementioned
exception occurred, at least one compaction task was executing which could have easily involved
981GB (or more) worth of input SSTables. Correct me if I am wrong but but Cassandra counts
data currently being compacted against available disk space. In our case, this is a significant
overestimation of the space required by compaction since a large portion of the data being
compacted has expired or is an overwrite.
> More to the point though, Cassandra should not crash because its out of disk space unless
its really actually out of disk space (ie, dont consider 'phantom' compaction disk usage when
flushing). I have seen one of our nodes die in this way before our alerts for disk space even
went off.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message