cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gary Dusbabek (JIRA)" <j...@apache.org>
Subject [jira] Issue Comment Edited: (CASSANDRA-1837) Deleted columns are resurrected after a flush
Date Fri, 10 Dec 2010 20:12:02 GMT

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

Gary Dusbabek edited comment on CASSANDRA-1837 at 12/10/10 3:11 PM:
--------------------------------------------------------------------

This is happening because of bug in the way deleted rows are [not] interpreted once they leave
the memtable in the CFS.getRangeSlice code.  CFS.getColumnFamily doesn't exhibit the bug,
but the codepath is pretty different.

I've got a fix that addresses standard columns, but it breaks a few of the nosetests for super
columns.  Looking into that now.

      was (Author: gdusbabek):
    This is happening because of bug in the way deleted rows are [not] interpreted in the
CFS.getRangeSlice code.  CFS.getColumnFamily doesn't exhibit the bug, but the codepath is
pretty different.

I've got a fix that addresses standard columns, but it breaks a few of the nosetests for super
columns.  Looking into that now.
  
> Deleted columns are resurrected after a flush
> ---------------------------------------------
>
>                 Key: CASSANDRA-1837
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-1837
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 0.7.0 rc 1
>            Reporter: Brandon Williams
>            Assignee: Gary Dusbabek
>            Priority: Blocker
>             Fix For: 0.7.0
>
>
> Easily reproduced with the cli:
> {noformat}
> [default@unknown] create keyspace testks;
> 2785d67c-02df-11e0-ac09-e700f669bcfc
> [default@unknown] use testks;
> Authenticated to keyspace: testks
> [default@testks] create column family testcf;
> 2fbad20d-02df-11e0-ac09-e700f669bcfc
> [default@testks] set testcf['test']['foo'] = 'foo';
> Value inserted.
> [default@testks] set testcf['test']['bar'] = 'bar';
> Value inserted.
> [default@testks] list testcf;
> Using default limit of 100
> -------------------
> RowKey: test
> => (column=626172, value=626172, timestamp=1291821869120000)
> => (column=666f6f, value=666f6f, timestamp=1291821857320000)
> 1 Row Returned.
> [default@testks] del testcf['test'];
> row removed.
> [default@testks] list testcf;
> Using default limit of 100
> -------------------
> RowKey: test
> 1 Row Returned.
> {noformat}
> Now flush testks and look again:
> {noformat}
> [default@testks] list testcf;
> Using default limit of 100
> -------------------
> RowKey: test
> => (column=626172, value=626172, timestamp=1291821869120000)
> => (column=666f6f, value=666f6f, timestamp=1291821857320000)
> 1 Row Returned.
> {noformat}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message