electric-sql / electric

Sync little subsets of your Postgres data into local apps and services.
https://electric-sql.com
Apache License 2.0
6.48k stars 156 forks source link

feat (sync-service): Prevent shape consumer errors from affecting other shapes #2009

Closed robacourt closed 4 days ago

robacourt commented 5 days ago

Fixes #1925 . Errors that occur while consuming the replication stream that are to do with a specific shape, cause that shape's consumer to remove the shape and shut down, leaving the other shapes unaffected.

Errors can occur:

  1. In the selector which happens on a process common to all shapes.
  2. On the consumer process.

This PR addresses both types of error. Previous to this PR, these errors would cause the sync service to get into an infinite crash loop and would stop responding to HTTP requests.

netlify[bot] commented 5 days ago

Deploy Preview for electric-next ready!

Name Link
Latest commit 49bec3a69b6c8c07d74233fb0dd4be875d521fbf
Latest deploy log https://app.netlify.com/sites/electric-next/deploys/673f0d937ea7790008c41914
Deploy Preview https://deploy-preview-2009--electric-next.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.