Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 62A19200B5A for ; Thu, 21 Jul 2016 07:57:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 6139E160A86; Thu, 21 Jul 2016 05:57:22 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id D1568160A64 for ; Thu, 21 Jul 2016 07:57:21 +0200 (CEST) Received: (qmail 14610 invoked by uid 500); 21 Jul 2016 05:57:20 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 14599 invoked by uid 99); 21 Jul 2016 05:57:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Jul 2016 05:57:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 791C52C029E for ; Thu, 21 Jul 2016 05:57:20 +0000 (UTC) Date: Thu, 21 Jul 2016 05:57:20 +0000 (UTC) From: "Wei Deng (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CASSANDRA-4778) leveled compaction does less work in L0 than intended MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 21 Jul 2016 05:57:22 -0000 [ https://issues.apache.org/jira/browse/CASSANDRA-4778?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Wei Deng updated CASSANDRA-4778: -------------------------------- Labels: compaction lcs (was: compaction) > leveled compaction does less work in L0 than intended > ----------------------------------------------------- > > Key: CASSANDRA-4778 > URL: https://issues.apache.org/jira/browse/CASSANDRA-4778 > Project: Cassandra > Issue Type: Bug > Affects Versions: 1.1.2 > Reporter: Jonathan Ellis > Assignee: Jonathan Ellis > Priority: Minor > Labels: compaction, lcs > Fix For: 1.1.6 > > Attachments: 4778.txt > > > We have this code in the candidate loop: > {code} > . if (SSTable.getTotalBytes(candidates) > maxSSTableSizeInBytes) > { > // add sstables from L1 that overlap candidates > candidates.addAll(overlapping(candidates, generations[1])); > break; > } > {code} > thus, as soon as we have enough to compact to make one L1 sstable's worth of data, we stop collecting candidates. -- This message was sent by Atlassian JIRA (v6.3.4#6332)