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 2C81C200ACA for ; Wed, 18 May 2016 18:39:15 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 2B6031609B0; Wed, 18 May 2016 16:39:15 +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 9BACC160A00 for ; Wed, 18 May 2016 18:39:14 +0200 (CEST) Received: (qmail 53230 invoked by uid 500); 18 May 2016 16:39:13 -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 53148 invoked by uid 99); 18 May 2016 16:39:13 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 May 2016 16:39:13 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 167CE2C1F62 for ; Wed, 18 May 2016 16:39:13 +0000 (UTC) Date: Wed, 18 May 2016 16:39:13 +0000 (UTC) From: "Jonathan Ellis (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CASSANDRA-11834) Don't compute expensive MaxPurgeableTimestamp until we've verified there's an expired tombstone MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 18 May 2016 16:39:15 -0000 [ https://issues.apache.org/jira/browse/CASSANDRA-11834?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jonathan Ellis updated CASSANDRA-11834: --------------------------------------- Attachment: 11834.txt Trivial patch attached. > Don't compute expensive MaxPurgeableTimestamp until we've verified there's an expired tombstone > ----------------------------------------------------------------------------------------------- > > Key: CASSANDRA-11834 > URL: https://issues.apache.org/jira/browse/CASSANDRA-11834 > Project: Cassandra > Issue Type: Bug > Components: Compaction > Reporter: Jonathan Ellis > Fix For: 2.1.15 > > Attachments: 11834.txt > > > In LCR's get reduced, we currently do this: > {code} > if (t.timestamp() < getMaxPurgeableTimestamp() && t.data.isGcAble(controller.gcBefore)) > {code} > Should call the expensive getMaxPurgeableTimestamp only after we have called the cheap isGcAble. > Marking this as a bug since it can cause pathological performance problems (CASSANDRA-11831). > Have verified that this is not a problem in 3.0 (CompactionIterator does the check in the correct order). -- This message was sent by Atlassian JIRA (v6.3.4#6332)