Israel Herraiz created BEAM-14093:
-------------------------------------

             Summary: OffsetRestrictionTracker calculates wrongly the tryClaim 
conditions
                 Key: BEAM-14093
                 URL: https://issues.apache.org/jira/browse/BEAM-14093
             Project: Beam
          Issue Type: Bug
          Components: io-py-common
    Affects Versions: 2.37.0
            Reporter: Israel Herraiz


The OffsetRestrictionTracker method tryClaim tries to calculate if the claim 
can be done using this condition:
{code:python}
if self._range.start <= position < self._range.stop:
  self._current_position = position
  return True{code}

The condition should be
{code:python}
if self._range.start <= position and position < self._range.stop:
  self._current_position = position
  return True{code}

This affects the correctness of the claims for SplittableDoFns.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to