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

Marcus Eriksson edited comment on CASSANDRA-12040 at 7/11/16 11:31 AM:
-----------------------------------------------------------------------

Can't we use {{CompactionTask.partialCompactionsAcceptable()}} for this? We 
should be able to reduce the scope of the compaction if the target level is 0. 
It would be nice if we could use the same mechanism as we do in standard STCS. 
(In {{LeveledCompactionTask.partialCompactionsAcceptable()}} we would return 
{{level == 0}} instead of {{false}}.)


was (Author: krummas):
Can't we use {{CompactionTask.partialCompactionsAcceptable()}} for this? We 
should be able to reduce the scope of the compaction if the target level is 0. 
It would be nice if we could use the same mechanism as we do in standard STCS.

>   If a level compaction fails due to no space it should schedule the next one
> -----------------------------------------------------------------------------
>
>                 Key: CASSANDRA-12040
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-12040
>             Project: Cassandra
>          Issue Type: Improvement
>            Reporter: sankalp kohli
>            Assignee: sankalp kohli
>            Priority: Minor
>         Attachments: CASSANDRA-12040_3.0.diff, CASSANDRA-12040_trunk.txt
>
>
> If a level compaction fails the space check, it aborts but next time the 
> compactions are scheduled it will attempt the same one. It should skip it and 
> go to the next so it can find smaller compactions to do.



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

Reply via email to