Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-14869

Range.subtractContained produces incorrect results when used on full ring

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Urgent
    • Resolution: Fixed
    • Fix Version/s: 4.0, 3.0.x, 3.11.x
    • Component/s: Legacy/Core
    • Labels:
      None
    • Bug Category:
      Correctness - API / Semantic Implementation
    • Severity:
      Critical
    • Complexity:
      Challenging
    • Since Version:

      Description

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

        Attachments

        1. range bug.jpg
          408 kB
          Aleksandr Sorokoumov

          Activity

            People

            • Assignee:
              Gerrrr Aleksandr Sorokoumov
              Reporter:
              Gerrrr Aleksandr Sorokoumov
              Authors:
              Aleksandr Sorokoumov
              Reviewers:
              Alex Petrov
            • Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: