[
https://issues.apache.org/jira/browse/BEAM-14093?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Israel Herraiz reassigned BEAM-14093:
-------------------------------------
Assignee: Israel Herraiz
> 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
> Assignee: Israel Herraiz
> Priority: P1
>
> 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)