Repository navigation
Marten 9.59.0
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,QueryByTagsAsyncandAggregateByTagsAsyncare now onIQuerySession.Events, so a read-only endpoint no longer needs a document session to read by tags (thanks to new contributor @alekbarszczewski, #5841).FetchForWritingByTagsstill needs a document session. Existing calls throughIDocumentSession.Eventsare unchanged, both in source and in compiled assemblies. A class that implementsMarten.Events.IQueryEventStoreitself 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/PauseAsynccalls, such as the second stop JasperFx'sRunCommandissues whenWebApplicationFactoryor 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 setupas a deployment step, ordb-patchscripts for a DBA, with links to the Weasel CLI and JasperFx stateful resource docs (#5839).
What's Changed
- Docs: schema management options, with links to the Weasel CLI and the stateful resource model by @jeremydmiller in #5839
- Bump JasperFx to 2.101.0; point the CLI docs at JasperFx and its Native AOT support by @jeremydmiller in #5840
- Serialize ExplicitProjectionCoordinator lifecycle calls so overlapping stops cannot race (#5842) by @jeremydmiller in #5843
- Bump JasperFx to 2.102.0; implement FetchFirstEventTimestampsAfterAsync (#1150) by @jeremydmiller in #5844
- Read DCB tags through a query session: EventsExistAsync, QueryByTagsAsync and AggregateByTagsAsync on IQueryEventStore by @alekbarszczewski in #5841
- Weasel 9.50.0 by @jeremydmiller in #5845
- Release Marten 9.59.0 by @jeremydmiller in #5846
New Contributors
- @alekbarszczewski made their first contribution in #5841
Full Changelog: v9.58.0...V9.59.0