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

OffsetRestrictionTracker calculates wrongly the tryClaim conditions

Details

    • Bug
    • Status: Resolved
    • P1
    • Resolution: Invalid
    • 2.37.0
    • Not applicable
    • io-py-common
    • None

    Description

      The OffsetRestrictionTracker method tryClaim tries to calculate if the claim can be done using this condition:

      if self._range.start <= position < self._range.stop:
        self._current_position = position
        return True

      The condition should be

      if self._range.start <= position and position < self._range.stop:
        self._current_position = position
        return True

      This affects the correctness of the claims for SplittableDoFns.

      Attachments

        Activity

          People

            iht Israel Herraiz
            iht Israel Herraiz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: