Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0D5E817927 for ; Thu, 5 Feb 2015 12:53:35 +0000 (UTC) Received: (qmail 57901 invoked by uid 500); 5 Feb 2015 12:53:34 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 57857 invoked by uid 500); 5 Feb 2015 12:53:34 -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 57844 invoked by uid 99); 5 Feb 2015 12:53:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Feb 2015 12:53:34 +0000 Date: Thu, 5 Feb 2015 12:53:34 +0000 (UTC) From: "Marcus Eriksson (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (CASSANDRA-8739) Don't check for overlap with sstables that have had their start positions moved in LCS MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CASSANDRA-8739?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14307164#comment-14307164 ] Marcus Eriksson edited comment on CASSANDRA-8739 at 2/5/15 12:52 PM: --------------------------------------------------------------------- we pick a bunch of files for compaction (those are not currently compacting), then we make sure that by compacting those into L1, we don't cause any overlap in L1. We do that by comparing first/last keys in the candidates with the first/last keys of the sstables that are currently compacting. was (Author: krummas): we pick a bunch of files for compaction (those are not currently compacting), then we make sure that by compacting those into L1, we don't cause any overlap in L1. We do that by checking first/last keys in the sstables > Don't check for overlap with sstables that have had their start positions moved in LCS > -------------------------------------------------------------------------------------- > > Key: CASSANDRA-8739 > URL: https://issues.apache.org/jira/browse/CASSANDRA-8739 > Project: Cassandra > Issue Type: Bug > Reporter: Marcus Eriksson > Assignee: Marcus Eriksson > Fix For: 2.1.3 > > Attachments: 0001-8739.patch > > > When picking compaction candidates in LCS, we check that we won't cause any overlap in the higher level. Problem is that we compare the files that have had their start positions moved meaning we can cause overlap. We need to also include the tmplink files when checking this. > Note that in 2.1 overlap is not as big problem as earlier, if adding an sstable would cause overlap, we send it back to L0 instead, meaning we do a bit more compaction but we never actually have overlap. -- This message was sent by Atlassian JIRA (v6.3.4#6332)