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] [Commented] (CASSANDRA-14513) Reverse order queries in presence of range tombstones may cause permanent data loss
Date Tue, 12 Jun 2018 16:02:00 GMT

    [ https://issues.apache.org/jira/browse/CASSANDRA-14513?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16509800#comment-16509800
] 

Aleksey Yeschenko commented on CASSANDRA-14513:
-----------------------------------------------

A dtest representing both scenarios can be found [here|https://github.com/iamaleksey/cassandra-dtest/commits/14513].

{{test_14513_transient}} shows that the issue can be reproduced with just one node - although
there is no permanent data loss here, just queries not returning all the results they are
supposed to. Which is bad in itself, but not as bad as the other scenario.

{{test_14513_permanent}} illustrates how that oversized tombstone can be propagated by read
repair to every replica and wipe out the partition.

Both tests are a bit longer than they need be - minimal reproduction can be achieved in half
as much code, but I opted for showing the full impact in an intentionally more verbose manner.

> Reverse order queries in presence of range tombstones may cause permanent data loss
> -----------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-14513
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-14513
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core, CQL, Local Write-Read Paths
>            Reporter: Sam Tunnicliffe
>            Assignee: Sam Tunnicliffe
>            Priority: Blocker
>             Fix For: 3.0.x, 3.11.x, 4.0.x
>
>
> Slice queries in descending sort order can create oversized artificial range tombstones.
At CL > ONE, read repair can propagate these tombstones to all replicas, wiping out vast
data ranges that they mistakenly cover.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org


Mime
View raw message