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

Range.subtractContained produces incorrect results when used on full ring

    XMLWordPrintableJSON

Details

    • Correctness - API / Semantic Implementation
    • Critical
    • Challenging

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

        Activity

          People

            Gerrrr Alex Sorokoumov
            Gerrrr Alex Sorokoumov
            Alex Sorokoumov
            Alex Petrov
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: