Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-5487

ByteKeyRangeTracker restrictions do not cover the entire interval because of incorrect next key

Details

    • Bug
    • Status: Resolved
    • P2
    • Resolution: Fixed
    • None
    • 2.8.0
    • sdk-java-core

    Description

      The definition of next for a byte key is incorrectly set as old key + 1 when treating the key as the next smallest value, for example

      0x01 is the next key for 0x00

       

      The ByteKey compareTo operator treats two keys where one key is the proper prefix of the other as smaller hence 0x01 is greater then 0x00, but so is 0x0000 thus next is skipping over 0x0000 as the next smallest key larger then 0x00.

      Attachments

        Issue Links

          Activity

            People

              lcwik Luke Cwik
              lcwik Luke Cwik
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m