cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aleksey Yeschenko (JIRA)" <j...@apache.org>
Subject [jira] [Reopened] (CASSANDRA-7346) Explicitly set deletion timestamp to Long.MAX_VALUE for counter deletions
Date Thu, 12 Jun 2014 19:33:02 GMT

     [ https://issues.apache.org/jira/browse/CASSANDRA-7346?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Aleksey Yeschenko reopened CASSANDRA-7346:
------------------------------------------


Reverted in c94caec1b5266af4f20290b9d3d82faff4977aa7 (https://github.com/apache/cassandra/commit/c94caec1b5266af4f20290b9d3d82faff4977aa7)
because it prevents us from improving counter reads in the future (CollationController#collectTimeOrderedData())
- when deletes are involved.

What we are going to do instead is to special-case cell reconcile logic to always choose tombstones
over a counter cell, which is more explicit and, ultimately, what we want to do.

> Explicitly set deletion timestamp to Long.MAX_VALUE for counter deletions
> -------------------------------------------------------------------------
>
>                 Key: CASSANDRA-7346
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-7346
>             Project: Cassandra
>          Issue Type: Improvement
>            Reporter: Richard Low
>            Assignee: Aleksey Yeschenko
>            Priority: Minor
>             Fix For: 2.1.0
>
>
> For counters, timestamps are automatically computed to be milliseconds since the epoch.
For everything else, when not specified manually, they are microseconds since the epoch. This
means if you delete a counter row, subsequent updates are lost unexpectedly.
> I know that deleting counters is not recommended, but that's only because deletes and
incs don't commute. If you know you have stopped incs, then delete, then start again (with
some external synchronization) then deleting is fine.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message