cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan Ellis (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CASSANDRA-386) CompareWith="LongType" CF mis-applies tombstones
Date Thu, 20 Aug 2009 22:54:14 GMT

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

Jonathan Ellis commented on CASSANDRA-386:
------------------------------------------

still confused. this works both with reversed slice and not:

    def test_long_remove(self):
        path = ColumnPath('StandardLong1', column=_i64(1))
        column_parent = ColumnParent('StandardLong1')
        sp = SlicePredicate(slice_range=SliceRange('', '', False, 1))

        client.insert('Keyspace1', 'key1', path, 'value1', 0, ConsistencyLevel.ONE)
        client.remove('Keyspace1', 'key1', ColumnPath('StandardLong1'), 1, ConsistencyLevel.ONE)
        slice = client.get_slice('Keyspace1', 'key1', column_parent, sp, ConsistencyLevel.ONE)
        assert slice == [], slice
        # resurrect
        client.insert('Keyspace1', 'key1', path, 'value2', 2, ConsistencyLevel.ONE)
        slice = [result.column
                 for result in client.get_slice('Keyspace1', 'key1', column_parent, sp, ConsistencyLevel.ONE)]
        assert slice == [Column(_i64(1), 'value2', 2)], slice


> CompareWith="LongType" CF mis-applies tombstones
> ------------------------------------------------
>
>                 Key: CASSANDRA-386
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-386
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 0.4
>            Reporter: Evan Weaver
>
> jbellis: what is "mis applying?"
> evn: later inserts have no effect
> jbellis: so you do a remove with timestamp X, then timestamp X + 1 has no effect?
> evn: yeah
> jbellis: did you try a similar test w/ a ascii comparewith?
> evn: well the identical test passes w/ TimeUUIDType
>       <Keyspace Name="MultiblogLong">      
>         <KeysCachedFraction>0.01</KeysCachedFraction>
>         <ColumnFamily CompareWith="LongType" Name="Blogs"/>
>         <ColumnFamily CompareWith="LongType" Name="Comments"/>
>       </Keyspace>
> $ ruby test/cassandra_test.rb -n test_get_first_long_column
> insert at 1250740275826063
> .
> 1 tests, 3 assertions, 0 failures, 0 errors
> $ ruby test/cassandra_test.rb -n test_get_first_long_column
> remove at 1250740278998607
> insert at 1250740279011751
> F
>   1) Failure:
> test_get_first_long_column(CassandraTest) [test/cassandra_test.rb:70]:
> <{<Cassandra::Long#13703350 time: Tue Jul 14 00:20:16 -0400 1970, usecs: 0, jitter:
3626>=>
>   "I like this cat"}> expected but was
> <{}>.
> 1 tests, 1 assertions, 1 failures, 0 errors

-- 
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