Repository navigation
Marten 9.55.0
Read before upgrading
Apps running under a Turkish or Azerbaijani culture (tr-TR, az-AZ) with document types whose names contain an uppercase I. Document aliases (#5778), DdlTemplate lookups and flat-table upsert function names (#5783) are now lowered with the invariant culture. Before this release, those cultures turned I into a dotless ı, so a document type Invoice was stored in mt_doc_ınvoice. From 9.55.0 it maps to mt_doc_invoice, and Marten will create that table empty. Rename the existing tables (and their upsert functions) to the invariant name before upgrading, or the existing documents will appear to be missing. Apps on any other culture are unaffected: the names they generate are unchanged.
Behaviour change: StoredDocument.Version for projection documents (#5773). For a mapping that uses UseVersionFromMatchingStream with revisions, the diagnostics version token is now <mt_version>:<mt_last_modified as epoch microseconds> (or an md5 of the document body when last-modified tracking is disabled). It used to be mt_version alone, which did not change when the daemon rewrote the document at the same stream version. Anything that parsed the token as an integer must be updated. Undeleting a projection document through the diagnostics writer also no longer bumps mt_version past the stream's version.
Fixes worth calling out
- HiLo ids recover after an outage (#5784). If the first id allocation on a fresh store hit a database outage, every later allocation on that store rethrew the same exception after the database came back. Thanks to @kentcooper for the report and the reproduction the regression test is built from.
- Subclass queries use nested duplicated-field columns (#5777). A query on a subclass now uses the duplicated column for a nested member such as
x.Inner.Value, instead of falling back to the JSONB path. - Verbose connection tracing (#5772). With
TrackConnections = TrackLevel.Verbose, amarten.append.eventactivity event is now emitted on every append route, including the Quick routes that are the V9 default. Expect more events per append than before. - Weasel 9.47.1 fixes index readback for a
DatabaseSchemaNamethat is a reserved word or contains uppercase. Before, every schema apply after the first failed with42P07(weasel#750, contributed by @marc-RocketRez). StreamPagedByCursorwrites each page's bytes directly and disposes its pooled stream (#5776, @chrisbbe).
What's Changed
- Docs: no links to the private CritterWatch repo by @jeremydmiller in #5775
- Bobcat 1.0.0 and JasperFx 2.96.0 by @jeremydmiller in #5774
- StreamPagedByCursor: write the page's bytes instead of re-encoding them, and dispose the pooled stream by @chrisbbe in #5776
- JasperFx 2.96.1: required members on a missing aggregate (#1087) by @jeremydmiller in #5779
- Diagnostics writer: a projection document's version token moves on every write (#5773) by @jeremydmiller in #5781
- Verbose tracing emits marten.append.event on every append route (#5772) by @jeremydmiller in #5782
- Culture-invariant DDL template lookup and flat-table function names by @jeremydmiller in #5783
- Weasel 9.47.1 by @jeremydmiller in #5785
- Subclass queries resolve nested duplicated fields to their columns (#5777) by @jeremydmiller in #5780
- Bug_5270 flake: read the version-guard indexes without pg_get_indexdef() by @jeremydmiller in #5786
- Fix culture-dependent document alias casing by @alpercelik in #5778
- Don't cache a failed HiLo factory build across an outage (#5784) by @jeremydmiller in #5787
- Retry should_catch_marten_command_exceptions like its sibling by @jeremydmiller in #5789
- Bump version to 9.55.0 by @jeremydmiller in #5790
New Contributors
- @alpercelik made their first contribution in #5778
Full Changelog: v9.54.2...V9.55.0