Repository navigation
v5.1.0-beta.3
Pre-release
Pre-release
·
52 commits
to develop
since this release
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
INSERTbut rows become visible atCOMMIT, 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 apublishfunction 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 committingNOTIFYtransactions 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
publishfunction on startup. - With
WithAutoCreateSchema(false), runSignalARRRPostgresBackplaneSchema.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.