Skip to content

Marten 9.63.0

Choose a tag to compare

@jeremydmiller jeremydmiller released this 23 Nov 19:20
9e90cc7

Marten 9.63.0 is a bug-fix release from the 9.0 branch. Most of these fixes are for bugs reported by people outside the core team, and they're backported from the Marten 10 work.

Fixes

Aggregates read back in the same session

  • ProjectLatest on an Async aggregate no longer stores a snapshot for the daemon to fold again (#6145, #6157). The stored snapshot ended up counting the session's events twice once the daemon caught up. FetchLatest still returns the current state right after the commit.
  • Reading a Live or Async aggregate after FetchForWriting no longer applies the session's appended events twice (#6104, #6110).
  • With CacheAggregatesForWriting, FetchLatest or ProjectLatest after FetchForWriting and an append no longer leaves the write cache holding the folded aggregate (#6147, #6158). The next FetchForWriting used to apply those events a second time.
  • Inline aggregates with a strong-typed id, read by the stream's Guid (#6148, #6158):
    • ProjectLatest no longer leaves the stored snapshot one event ahead.
    • With UseIdentityMapForAggregates off, FetchLatest and ProjectLatest no longer throw DocumentIdTypeMismatchException.
  • On an identity session with UseIdentityMapForAggregates off, FetchLatest after FetchForWriting and a commit no longer returns the pre-commit Inline aggregate (#6106, #6110).

Multi-tenancy

  • Two tenants appending to the same stream id in one save, through ForTenant, now get a stream each. They used to write into one stream (#6031, #6041).
  • DeleteAllTenantDataAsync no longer drops every tenant that shares the departing tenant's partition suffix (#6111, #6113).

Other fixes

  • Batch query items no longer hang after a failed Execute() (#6034, #6038). Items it hadn't read yet now fail with the same exception, or are cancelled when its token was cancelled. Items read before the failure keep their results.
  • GinIndexJsonData() declared after GinIndexJsonDataMember() no longer overwrites the member index (#6017, #6028). The next migration creates the index that went missing.
  • DCB tags and async side effects: in a store that registers a DCB tag type, an async projection side effect that appended events no longer fails every batch with a NullReferenceException (#6124, backported from #6121).
  • A fetch by natural key on an Async snapshot now includes the events after the snapshot. FetchForWriting and FetchLatest by natural key used to return the stored document labelled with the stream's current version (#6124).
  • The event store explorer and CritterWatch's projection stepper now read and write through the store's serializer, so custom JSON configuration is honoured (#6107, #6110).
  • Duplicated-field upsert arguments and tracing event names are lowercased invariantly, independent of the machine's culture (#6103, #6110).

Upgrade notes

  • No schema changes, except that a missing GIN member index is created on the next migration if you were affected by #6017.
  • JasperFx stays at 2.102.0, and Weasel at 9.51.0.

Thanks to @esond and @Esquetta for the bug reports and fixes.