cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kenny Yu <>
Subject Counter consistency - are counters idempotent?
Date Fri, 22 Jul 2011 14:52:21 GMT
As of Cassandra 0.8.1, are counter increments and decrements idempotent? If,
for example, a client sends an increment request and the increment occurs,
but the network subsequently fails and reports a failure to the client, will
Cassandra retry the increment (thus leading to an overcount and inconsistent

I have done some reading and I am getting conflicting sources about counter
consistency. In this source (,
it states that counters now have the same consistency as regular
columns--does this imply that the above example will not lead to an

If counters are not idempotent, are there examples of effective uses of
counters that will prevent inconsistent counts?

Thank you for your help.

View raw message