incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aaron morton <aa...@thelastpickle.com>
Subject Re: deleted counters keeps their value?
Date Wed, 21 Sep 2011 10:07:51 GMT
see technical limitations for deleting counters http://wiki.apache.org/cassandra/Counters

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

On 21/09/2011, at 9:42 PM, Radim Kolar wrote:

> Another problem with counters: Counter delete + incr does not set value to 1 but to old
value before deletion + 1
> 
> [default@whois] list ipbans;
> Using default limit of 100
> -------------------
> RowKey: 10.0.0.7
> 
> 1 Row Returned.
> [default@whois] incr ipbans['10.0.0.7']['hits'];
> Value incremented.
> [default@whois] list ipbans;
> Using default limit of 100
> -------------------
> RowKey: 10.0.0.7
> => (counter=hits, value=23)
> 
> 1 Row Returned.
> [default@whois]
> 


Mime
View raw message