ayush-builds-stuff commented on code in PR #41565:
URL: https://github.com/apache/beam/pull/41565#discussion_r4697534893
##########
sdks/python/apache_beam/io/range_trackers.py:
##########
@@ -97,6 +97,11 @@ def _validate_record_start(self, record_start, split_point):
raise ValueError(
'This function must only be called under the lock self.lock.')
+ if record_start < self._start_offset:
Review Comment:
Thanks for pointing this out. This check was added in response to an earlier
review comment that has since been deleted.
I checked the existing OffsetRangeTracker callers, and they all claim
records at or after the configured start, as required by the RangeTracker
contract. A lower claim would indicate an invalid source implementation, so
this validation isn’t necessary for #18033 and introduces unrelated behavior.
I’ll remove the check and its test while keeping the first-claim update and
ConcatSource fixes.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]