Skip to content

v5.1.0-beta.3

Pre-release
Pre-release

Choose a tag to compare

@windischb windischb released this 05 Sep 11:00
· 52 commits to develop since this release
d8c6ea2

Third preview of the upcoming 5.1.0, published for integration testing. Not for production.

One correctness fix on top of beta.2, in the Postgres backplane's catch-up. If you run beta.2 with catch-up on, take this one.

What changed

  • The catch-up cursor is now exact. Message ids are assigned at INSERT but rows become visible at COMMIT, so two concurrent publishes could commit in the opposite order of their ids — and a row that committed during a node's subscription gap with an id below that node's cursor was neither replayed nor notified. A millisecond window, but a hole in "a reconnect misses nothing". Every publish now goes through a publish function the schema script creates, which takes a transaction-scoped advisory lock before inserting and notifying. Ids are assigned in commit order, the window is closed, and the cross-node message order matches the id order. Postgres serializes committing NOTIFY transactions anyway, so throughput is unchanged.

Installing

<PackageReference Include="Cocoar.SignalARRR.Server" Version="5.1.0-beta.3" />
<PackageReference Include="Cocoar.SignalARRR.Server.Backplane.Postgres" Version="5.1.0-beta.3" />

The TypeScript and Swift packages are published at the same version for consistency; their content is unchanged since 5.0.0. npm publishes under the prerelease dist-tag.

Upgrading from beta.2

  • With automatic schema creation (the default) nothing needs doing: the backplane creates the publish function on startup.
  • With WithAutoCreateSchema(false), run SignalARRRPostgresBackplaneSchema.GetCreateScript() again through your migrations. It is idempotent. Startup now checks for the function and says so if it is missing, instead of failing on the first publish.

Everything in beta.2 — cluster subjects, catch-up, the retention and its counters — is unchanged otherwise; see the beta.2 notes.

Feedback

Please open an issue for anything that surprises you — particularly around ordering, duplicates, or what a node does after a reconnect.