Skip to content

Marten 9.59.0

Choose a tag to compare

@jeremydmiller jeremydmiller released this 09 Nov 16:38
41b6aa2

Marten 9.59.0 moves to JasperFx 2.102.0 and Weasel 9.50.0. It adds read-only DCB tag queries on a query session, reports how old a projection's oldest unprocessed event is, and fixes a shutdown race in the explicit projection coordinator.

Highlights

  • DCB tag queries through a query session: EventsExistAsync, QueryByTagsAsync and AggregateByTagsAsync are now on IQuerySession.Events, so a read-only endpoint no longer needs a document session to read by tags (thanks to new contributor @alekbarszczewski, #5841). FetchForWritingByTags still needs a document session. Existing calls through IDocumentSession.Events are unchanged, both in source and in compiled assemblies. A class that implements Marten.Events.IQueryEventStore itself has three more members to implement.
  • Pending event ages: Marten implements JasperFx 2.102.0's IEventDatabase.FetchFirstEventTimestampsAfterAsync. It returns the timestamp of the oldest event a shard hasn't processed yet, in one round trip. CritterWatch uses it to report projection lag as time instead of a count of events (#5844).
  • Explicit projection coordinator shutdown race: overlapping StopAsync / PauseAsync calls, such as the second stop JasperFx's RunCommand issues when WebApplicationFactory or Alba stops the host, no longer stop and dispose the same daemons twice or log "Error while trying to stop daemon agents". A start that overlaps a stop no longer starts a disposed daemon, and a daemon resolved during a stop is no longer dropped without being disposed (#5842, #5843).
  • The command line under Native AOT: JasperFx 2.101.0 runs the command line from a Native AOT binary, and with Weasel 9.50.0 the db-* commands (db-apply, db-assert, db-patch, db-dump, db-list) now appear and run there too. JIT applications see no change (#5840, #5845).
  • Docs: schema management now explains when to use lazy AutoCreate, apply at startup, db-apply / resources setup as a deployment step, or db-patch scripts for a DBA, with links to the Weasel CLI and JasperFx stateful resource docs (#5839).

What's Changed

New Contributors

Full Changelog: v9.58.0...V9.59.0