You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Stu Hood (JIRA)" <ji...@apache.org> on 2010/02/23 23:01:38 UTC

[jira] Commented: (CASSANDRA-814) Compaction bucketizing is computing average size incorrectly

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

Stu Hood commented on CASSANDRA-814:
------------------------------------

This doesn't look right...

 * We use < and > in the if statement for existing buckets, which means that an SSTable of exactly half the average or exactly 1.5 the average will create a new bucket.
 * We always divide by 2 to calculate the average, although there will typically be more than 2 sstables in a bucket.

> Compaction bucketizing is computing average size incorrectly
> ------------------------------------------------------------
>
>                 Key: CASSANDRA-814
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-814
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 0.5
>            Reporter: Jonathan Ellis
>            Assignee: Jonathan Ellis
>            Priority: Minor
>             Fix For: 0.6
>
>         Attachments: 0001-rename-CM.getCompactionBuckets-CM.getBuckets.txt, 0002-fix-average-size-calculation.txt
>
>
> in the worst case (which doesn't seem to actually affect anyone) this could prevent sstables from being compacted, incorrectly

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.