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

EffectiveIndexInterval calculation is incorrect

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Urgent
    • Resolution: Fixed
    • 2.1.5
    • None
    • None
    • Critical

    Description

      I'm not familiar enough with the calculation itself to understand why this is happening, but see discussion on CASSANDRA-8851 for the background. I've introduced a test case to look for this during downsampling, but it seems to pass just fine, so it may be an artefact of upgrading.

      The problem was, unfortunately, not manifesting directly because it would simply result in a failed lookup. This was only exposed when early opening used firstKeyBeyond, which does not use the effective interval, and provided the result to getPosition().

      I propose a simple fix that ensures a bug here cannot break correctness. Perhaps thobbs can follow up with an investigation as to how it actually went wrong?

      Attachments

        1. 8993.txt
          3 kB
          Benedict Elliott Smith
        2. 8993-2.1.txt
          8 kB
          Tom Hobbs
        3. 8993-2.1-v2.txt
          9 kB
          Tom Hobbs

        Activity

          People

            benedict Benedict Elliott Smith
            benedict Benedict Elliott Smith
            Benedict Elliott Smith
            Tom Hobbs
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: