Skip to content

Conversation

@Rentacookie
Copy link
Contributor

It was found that under some circumstance mysql replication stops without any errors, and only starts up correctly again when the powersync instance is restarted. We suspect that this may be happening to due an error on the replication connection that is not picked up by the Binlog listener.

This adds a heartbeat mechanism on the listener's replication connection to ensure we timeously pick up when the connection has stalled.

@changeset-bot
Copy link

changeset-bot bot commented Jan 7, 2025

🦋 Changeset detected

Latest commit: 06954d3

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

This PR includes changesets to release 2 packages
Name Type
@powersync/service-module-mysql Patch
@powersync/service-image 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

rkistner
rkistner previously approved these changes Jan 7, 2025
@rkistner
Copy link
Contributor

rkistner commented Jan 7, 2025

Note: still needs a changeset.

@Rentacookie Rentacookie merged commit e25263c into main Jan 8, 2025
15 checks passed
@Rentacookie Rentacookie deleted the mysql-connection-heartbeat-failsafe branch January 8, 2025 08:14
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