You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Aleksandr Sorokoumov (JIRA)" <ji...@apache.org> on 2018/11/07 07:15:00 UTC

[jira] [Commented] (CASSANDRA-14869) Range.subtractContained produces incorrect results when used on full ring

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

Aleksandr Sorokoumov commented on CASSANDRA-14869:
--------------------------------------------------

Patches:
* [3.0 | https://github.com/Gerrrr/cassandra/tree/14869-3.0]
* [3.11 | https://github.com/Gerrrr/cassandra/tree/14869-3.11]
* [4.0 | https://github.com/Gerrrr/cassandra/tree/14869-4.0]

> Range.subtractContained produces incorrect results when used on full ring
> -------------------------------------------------------------------------
>
>                 Key: CASSANDRA-14869
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-14869
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Aleksandr Sorokoumov
>            Assignee: Aleksandr Sorokoumov
>            Priority: Major
>             Fix For: 3.0.x, 3.11.x, 4.0.x
>
>         Attachments: range bug.jpg
>
>
> The bug is in the way {{Range.subtractContained}} works if minuend range covers the full ring and subtrahend range goes over 0 (see illustration). For example, {{(-50, 50] - (10, 100]}} returns \{{{(50,10], (100,50]}}} instead of \{{(100,10]}}.



--
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