Skip to content

Conversation

@simolus3
Copy link
Contributor

@simolus3 simolus3 commented Nov 6, 2025

My best guess at the moment is that we have an asynchronous query / worker invocation somewhere that runs after we've closed the database. That sends a message into the void, and comlink returns a promise that never returns.

So this ports the fix from #725 to node, which is good to have anyway.

This seems to improve test reliability by a lot, so it looks like this probably was the Rust client + comlink issue.

This also adds debug logs for all worker messages, but we should remove those before merging.

@changeset-bot
Copy link

changeset-bot bot commented Nov 6, 2025

🦋 Changeset detected

Latest commit: 3b2a2c9

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

This PR includes changesets to release 1 package
Name Type
@powersync/node 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

@simolus3 simolus3 marked this pull request as ready for review November 6, 2025 16:16
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