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 69CC3D2CF for ; Thu, 20 Dec 2012 04:33:16 +0000 (UTC) Received: (qmail 80550 invoked by uid 500); 20 Dec 2012 04:33:16 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 80440 invoked by uid 500); 20 Dec 2012 04:33:15 -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 80136 invoked by uid 99); 20 Dec 2012 04:33:15 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Dec 2012 04:33:15 +0000 Date: Thu, 20 Dec 2012 04:33:15 +0000 (UTC) From: "amorton (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CASSANDRA-5079) Compaction deletes ExpiringColumns in Secondary Indexes 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-5079?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] amorton updated CASSANDRA-5079: ------------------------------- Attachment: 5079.txt > Compaction deletes ExpiringColumns in Secondary Indexes > ------------------------------------------------------- > > Key: CASSANDRA-5079 > URL: https://issues.apache.org/jira/browse/CASSANDRA-5079 > Project: Cassandra > Issue Type: Bug > Components: Core > Affects Versions: 1.1.7, 1.2.0 rc1 > Reporter: amorton > Assignee: amorton > Attachments: 5079.txt > > > From this discussion http://www.mail-archive.com/user@cassandra.apache.org/msg26599.html > CompactionManager.getDefaultGcBefore() set's the gc_before to be Integer.MAX_VALUE. > In the example all entries in the secondary index have a TTL. In PreCompactedRow.removeDeletedAndOldShards() the CF is determined to have irrelevant data, the call to CFS.removeDeleted() results in the ExpiringColumns being removed and the row is treated as empty. CompactionTask.execute() exits at the {{if (!nni.hasNext())}} test, so the sstables are marked as compacted and soon deleted. > In the example the localDeletionTime was Thu, 21 Mar 2013 08:25:22 GMT and should not have been purged. > In the example when the first compaction on the secondary index runs the on disk data for the index is deleted. The logs show a compaction starting and no associated "Compacted to" message from that compaction thread. > The impact is incorrect results from secondary indexes queries. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira