You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Benjamin Coverston (JIRA)" <ji...@apache.org> on 2013/06/05 17:56:22 UTC

[jira] [Comment Edited] (CASSANDRA-5614) W/O specified columns ASPCSI does not get notified of deletes

    [ https://issues.apache.org/jira/browse/CASSANDRA-5614?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13676057#comment-13676057 ] 

Benjamin Coverston edited comment on CASSANDRA-5614 at 6/5/13 3:55 PM:
-----------------------------------------------------------------------

Instead of expanding them, at least for the purposes of what I'm doing, I would be OK with just getting keybytes, and column if column had a special marker for a row tombstone. That way I know the whole row was deleted up front (and I can take one action) rather than getting a notification per column.
                
      was (Author: bcoverston):
    Instead of expanding them, at least for the purposes of what I'm doing I would be OK with just getting keybytes, and column if column had a special marker for a row tombstone.
                  
> 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 Overton
>            Priority: Minor
>             Fix For: 1.2.6
>
>
> 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