[ https://issues.apache.org/jira/browse/CASSANDRA-14869?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16689954#comment-16689954 ]
Alex Petrov commented on CASSANDRA-14869: ----------------------------------------- Builds: |[3.0|https://circleci.com/workflow-run/dec6ad52-121f-4bd6-92f9-95d52b041ec9]|[3.11|https://circleci.com/workflow-run/02340ed3-5b7f-4e8e-a51f-2192cdd93612]|[trunk|https://circleci.com/workflow-run/7de63da3-3977-4ace-aeef-be5430b9bc37]| > 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 > Components: Core > Reporter: Aleksandr Sorokoumov > Assignee: Aleksandr Sorokoumov > Priority: Major > Fix For: 3.0.x, 3.11.x, 4.0.x > > Attachments: range bug.jpg > > > Currently {{Range.subtractContained}} returns incorrect results if minuend > range covers full ring and: > * subtrahend range wraps around. For example, {{(50, 50] - (10, 100]}} > returns {{\{(50,10], (100,50]\}}} instead of {{(100,10]}} > * subtrahend range covers the full ring as well. For example {{(50, 50] - (0, > 0]}} returns {{\{(0,50], (50,0]\}}} instead of {{\{\}}} -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org