Skip to content
New issue

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

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

Already on GitHub? # to your account

Dont interrupt sync for unrelated checkpoint #239

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

simolus3
Copy link
Contributor

@simolus3 simolus3 commented Apr 4, 2025

This restores support for interrupting checkpoints (the functionality was disabled in #236 due to a flaw where new checkpoints on unrelated bucket would interrupt sync).

To restore this functionality, we're expanding the work we're doing while the previous sync iteration is active: Instead of just waiting for a new checkpoint from storage, we're also building the new checkpoint line preemptively. If the new checkpoint does not result in a checkpoint line for the connection, we do nothing and keep waiting for the next checkpoint.

This should be safe because the stateful logic to build checkpoint lines does not update its internal state if no line ends up being built.

Copy link

changeset-bot bot commented Apr 4, 2025

🦋 Changeset detected

Latest commit: 11b88b9

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 9 packages
Name Type
@powersync/service-core Patch
@powersync/service-core-tests Patch
@powersync/service-module-mongodb-storage Patch
@powersync/service-module-mongodb Patch
@powersync/service-module-mysql Patch
@powersync/service-module-postgres-storage Patch
@powersync/service-module-postgres Patch
@powersync/service-image Patch
test-client Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant