You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Marcus Eriksson (JIRA)" <ji...@apache.org> on 2015/01/05 16:21:34 UTC

[jira] [Comment Edited] (CASSANDRA-8562) Fix checking available disk space before compaction starts

    [ https://issues.apache.org/jira/browse/CASSANDRA-8562?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14264659#comment-14264659 ] 

Marcus Eriksson edited comment on CASSANDRA-8562 at 1/5/15 3:20 PM:
--------------------------------------------------------------------

Attaching patch that checks if we have enough space for the sstables created by the compaction

For LCS it sums up all data directories that have space for at least one sstable.

-Kept the reduce scope code in DiskAwareRunnable since removing it could break stuff for people running their own custom CompactionTask- edit: seems we broke it for them in CASSANDRA-8329 anyway, new patch attached


was (Author: krummas):
Attaching patch that checks if we have enough space for the sstables created by the compaction

For LCS it sums up all data directories that have space for at least one sstable.

Kept the reduce scope code in DiskAwareRunnable since removing it could break stuff for people running their own custom CompactionTask

> Fix checking available disk space before compaction starts
> ----------------------------------------------------------
>
>                 Key: CASSANDRA-8562
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-8562
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Marcus Eriksson
>            Assignee: Marcus Eriksson
>             Fix For: 2.0.12, 2.1.3
>
>         Attachments: 0001-Check-for-available-disk-space-before-starting-compa.patch
>
>
> When starting a compaction we check if there is enough disk space available to start it, otherwise we might (for STCS) reduce the compaction so that the result could fit. Now (since CASSANDRA-8329) we check for the directory to write to a lot later and this can reduce the compaction after we have created the scanners.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)