Closed maxi297 closed 4 minutes ago
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
/autofix
Auto-Fix Job Info
This job attempts to auto-fix any linting or formating issues. If any fixes are made, those changes will be automatically committed and pushed back to the PR.
Note: This job can only be run by maintainers. On PRs from forks, this command requires that the PR author has enabled the
Allow edits from maintainers
option.PR auto-fix job started... Check job output.
✅ Changes applied successfully.
What
Work as part of https://github.com/airbytehq/airbyte-internal-issues/issues/10552
Following this conversation, we have moved part of the state management to the concurrent read processor. However, the close is still done as part of the partition. The reason this is annoying is that it adds a dependency between the partitions and the cursor and now every time there is a change in the cursor, it might affect the partitions.
How
We can remove this dependency by calling
stream.cursor.close_partition(...)
instead ofpartition.close
as part of the concurrent read processor.Summary by CodeRabbit
Release Notes
New Features
Bug Fixes
Tests
FileBasedStreamPartition
andStreamPartition
to reflect changes in cursor management.