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 E05C2108E5 for ; Wed, 24 Jul 2013 08:11:52 +0000 (UTC) Received: (qmail 12620 invoked by uid 500); 24 Jul 2013 08:11:52 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 12444 invoked by uid 500); 24 Jul 2013 08:11:51 -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 11996 invoked by uid 99); 24 Jul 2013 08:11:49 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Jul 2013 08:11:49 +0000 Date: Wed, 24 Jul 2013 08:11:49 +0000 (UTC) From: "Sam Tunnicliffe (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CASSANDRA-5614) W/O specified columns ASPCSI does not get notified of deletes 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-5614?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sam Tunnicliffe updated CASSANDRA-5614: --------------------------------------- Attachment: 0004-CASSANDRA-5614-Consider-timestamps-when-checking-col.patch > W/O specified columns ASPCSI does not get notified of deletes > ------------------------------------------------------------- > > Key: CASSANDRA-5614 > URL: https://issues.apache.org/jira/browse/CASSANDRA-5614 > Project: Cassandra > Issue Type: Bug > Affects Versions: 1.2.0 > Reporter: Benjamin Coverston > Assignee: Sam Tunnicliffe > Priority: Minor > Fix For: 1.2.7 > > Attachments: 0001-CASSANDRA-5614-PreCompactedRow-updates-2i-correctly.patch, 0002-CASSANDRA-5614-LazilyCompactedRow-outputs-SSTables-a.patch, 0003-CASSANDRA-5614-Memtable-updates-with-RowTombstone-up.patch, 0004-CASSANDRA-5614-Consider-timestamps-when-checking-col.patch > > > I'm working on a secondary index implementation based on the composite index type. > AbstractSimplePerColumnSecondaryIndex.java#delete is not called when CQL delete statements do not specify columns. > When I specify columns it is called. Pretty sure this is a bug. > Setup: > {code} > cqlsh> create KEYSPACE foo WITH replication = {'class': 'SimpleStrategy' , 'replication_factor': 1}; > cqlsh> use foo; > cqlsh:foo> CREATE TABLE albums (artist text, album text, rating int, release int, PRIMARY KEY (artist, album)); > cqlsh:foo> CREATE INDEX ON albums (rating); > {code} > {code} > cqlsh:foo> insert into albums (artist, album, rating, release) VALUES ('artist', 'album', 1, 2); > {code} > Does not get called here: > {code} > cqlsh:foo> DELETE FROM albums where artist='artist' and album='album'; > {code} > {code} > cqlsh:foo> insert into albums (artist, album, rating, release) VALUES ('artist', 'album', 1, 2); > {code} > gets called here: > {code} > cqlsh:foo> DELETE rating FROM albums where artist='artist' and album='album'; > {code} -- 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