You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by Erik Holstad <er...@gmail.com> on 2010/02/24 22:21:46 UTC

Deleted rows showing up when doing a get_range_slice query

When deleting rows from a table and then using a get_range_slice query, the
keys or the
deleted rows show up, with no name/value pairs. What is the reasoning behind
this?

I have also seen a weird issue when using a md5 generated byte[] as a column
name,
doesn't seem like it actually work. I can't get the value that was inserted
that way.
But if I for example Base64.encode().getBytes() it seems to be ok, any
ideas?
-- 
Regards Erik

Re: Deleted rows showing up when doing a get_range_slice query

Posted by Jonathan Ellis <jb...@gmail.com>.
On Wed, Feb 24, 2010 at 3:21 PM, Erik Holstad <er...@gmail.com> wrote:
> When deleting rows from a table and then using a get_range_slice query, the
> keys or the
> deleted rows show up, with no name/value pairs. What is the reasoning behind
> this?

Cassandra doesn't know that there are no other columns associated with
that key, without doing a more expensive query.  This is what
get_key_range used to do, but it was too slow.  So just treat it as a
row that didn't happen to have the particular columns you requested,
which is what it is, until it gets GC'd.  (See:
http://wiki.apache.org/cassandra/DistributedDeletes)

> I have also seen a weird issue when using a md5 generated byte[] as a column
> name,
> doesn't seem like it actually work. I can't get the value that was inserted
> that way.
> But if I for example Base64.encode().getBytes() it seems to be ok, any
> ideas?

Something is wrong on your end, but you haven't given us enough
details to tell what it is. :)

-Jonathan