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

Opfs uploads #505

Merged
merged 11 commits into from
Feb 21, 2025
Merged

Opfs uploads #505

merged 11 commits into from
Feb 21, 2025

Conversation

stevensJourney
Copy link
Collaborator

@stevensJourney stevensJourney commented Feb 20, 2025

Overview

A bug was identified when using OPFS as the SQLite VFS. When reconnecting with different client parameters, the PowerSync client failed to trigger CRUD uploads, preventing data from being uploaded. This issue occurred only when multiple tab support was enabled (the default).

The root cause was the shared sync worker using a stale database connection after a reconnect. The sync manager's logic for obtaining a database connection has been updated to ensure a valid connection is always used when a client disconnects or reconnects.

Relevant unit tests were updated to include OPFS.

Copy link

changeset-bot bot commented Feb 20, 2025

🦋 Changeset detected

Latest commit: c526bb9

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

This PR includes changesets to release 2 packages
Name Type
@powersync/web Patch
@powersync/diagnostics-app 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

@stevensJourney stevensJourney marked this pull request as ready for review February 20, 2025 17:39
@stevensJourney stevensJourney merged commit 44582ef into main Feb 21, 2025
6 checks passed
@stevensJourney stevensJourney deleted the opfs-uploads branch February 21, 2025 12:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants