Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Load CDK: CheckpointManager support for Index-Based Checkpointing #53663

Merged

Conversation

johnny-schmidt
Copy link
Contributor

What

Follow-up to #53646. This adds the corresponding support in the checkpoint manager for index-based accounting.

@johnny-schmidt johnny-schmidt requested a review from a team as a code owner February 12, 2025 21:23
Copy link

vercel bot commented Feb 12, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
airbyte-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 19, 2025 9:46pm

@octavia-squidington-iii octavia-squidington-iii added the CDK Connector Development Kit label Feb 12, 2025
@johnny-schmidt johnny-schmidt force-pushed the jschmidt/load-cdk/indexed-based-bookkeeping branch from 7b4f628 to 6069fa9 Compare February 12, 2025 21:54
@johnny-schmidt johnny-schmidt force-pushed the jschmidt/load-cdk/id-bookkeeping-ckpt-manager branch from 8754a59 to ded3918 Compare February 12, 2025 21:55
@johnny-schmidt johnny-schmidt force-pushed the jschmidt/load-cdk/indexed-based-bookkeeping branch from 6069fa9 to 5714081 Compare February 12, 2025 22:30
@johnny-schmidt johnny-schmidt force-pushed the jschmidt/load-cdk/id-bookkeeping-ckpt-manager branch 2 times, most recently from 4c5afe6 to ebe0036 Compare February 12, 2025 22:36
@johnny-schmidt johnny-schmidt force-pushed the jschmidt/load-cdk/indexed-based-bookkeeping branch from 5714081 to c5d56a4 Compare February 12, 2025 23:25
@johnny-schmidt johnny-schmidt force-pushed the jschmidt/load-cdk/id-bookkeeping-ckpt-manager branch from ebe0036 to 89ffc87 Compare February 12, 2025 23:25
@johnny-schmidt johnny-schmidt force-pushed the jschmidt/load-cdk/indexed-based-bookkeeping branch from c5d56a4 to c34e0df Compare February 14, 2025 00:40
@johnny-schmidt johnny-schmidt force-pushed the jschmidt/load-cdk/id-bookkeeping-ckpt-manager branch from 89ffc87 to 6c8c579 Compare February 14, 2025 00:41
Copy link
Contributor

@edgao edgao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

either I'm misunderstanding, or there's a bug? (which I think is being masked b/c the unit test only has 1 record per stream)

@johnny-schmidt johnny-schmidt force-pushed the jschmidt/load-cdk/indexed-based-bookkeeping branch 3 times, most recently from 3570a29 to d20d91d Compare February 19, 2025 20:56
@johnny-schmidt johnny-schmidt force-pushed the jschmidt/load-cdk/id-bookkeeping-ckpt-manager branch from 6c8c579 to a8575e3 Compare February 19, 2025 20:57
Copy link
Contributor

@edgao edgao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

two nits, otherwise lgtm

@@ -155,7 +164,13 @@ abstract class StreamsCheckpointManager<T> : CheckpointManager<DestinationStream
val head = globalCheckpoints.peek()
val allStreamsPersisted =
head.streamIndexes.all { (stream, index) ->
syncManager.getStreamManager(stream).areRecordsPersistedUntil(index)
if (!checkpointById) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: invert this if statement (i.e. if (checkpointById) { ... CheckpointId()... } else {...})

=======
* True if all records in the stream have been marked as completed AND the stream has been marked as
* complete.
>>>>>>> 3570a293f9b (addressed comments)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like a borked git merge

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah fixed it locally

Base automatically changed from jschmidt/load-cdk/indexed-based-bookkeeping to master February 19, 2025 21:06
@johnny-schmidt johnny-schmidt force-pushed the jschmidt/load-cdk/id-bookkeeping-ckpt-manager branch from a8575e3 to 4261c93 Compare February 19, 2025 21:14
@johnny-schmidt johnny-schmidt force-pushed the jschmidt/load-cdk/id-bookkeeping-ckpt-manager branch from 4261c93 to 70a91da Compare February 19, 2025 21:33
@johnny-schmidt johnny-schmidt force-pushed the jschmidt/load-cdk/id-bookkeeping-ckpt-manager branch from 70a91da to 2bf1b3e Compare February 19, 2025 21:34
@johnny-schmidt johnny-schmidt enabled auto-merge (squash) February 19, 2025 21:34
@johnny-schmidt johnny-schmidt merged commit 5330830 into master Feb 19, 2025
23 checks passed
@johnny-schmidt johnny-schmidt deleted the jschmidt/load-cdk/id-bookkeeping-ckpt-manager branch February 19, 2025 21:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CDK Connector Development Kit
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants