You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by Owen Davies <Ow...@logmein.com> on 2012/07/02 18:53:06 UTC

MultigetSliceQuery count 1 returning multiple results

We are using hector.rb to do a MultigetSliceQuery over one row, with count 1. Most of the time it works, but occasionally we are getting back 2 columns. Has anyone seen this before?

Cassandra: 1.1.0-SNAPSHOT
Hector: 1.0.2
Hector.rb: 0.0.1

Gem Code:

https://github.com/jashmenn/hector.rb/blob/master/lib/hector/hector.rb#L126

Example Query:

client.get_range(column_family, row_id, row_id, :start => time, :finish => (time - 1.day), :count => 1, :reversed => true)
client.get_range(column_family, row_id, row_id, :start => time, :finish => (time + 1.day), :count => 1)

Thanks,

Owen

Re: MultigetSliceQuery count 1 returning multiple results

Posted by aaron morton <aa...@thelastpickle.com>.
> Cassandra: 1.1.0-SNAPSHOT
Does it happen on an official release ?

Cheers

-----------------
Aaron Morton
Freelance Developer
@aaronmorton
http://www.thelastpickle.com

On 3/07/2012, at 4:53 AM, Owen Davies wrote:

> We are using hector.rb to do a MultigetSliceQuery over one row, with count 1. Most of the time it works, but occasionally we are getting back 2 columns. Has anyone seen this before?
> 
> Cassandra: 1.1.0-SNAPSHOT
> Hector: 1.0.2
> Hector.rb: 0.0.1
> 
> Gem Code:
> 
> https://github.com/jashmenn/hector.rb/blob/master/lib/hector/hector.rb#L126
> 
> Example Query:
> 
> client.get_range(column_family, row_id, row_id, :start => time, :finish => (time - 1.day), :count => 1, :reversed => true)
> client.get_range(column_family, row_id, row_id, :start => time, :finish => (time + 1.day), :count => 1)
> 
> Thanks,
> 
> Owen