Skip to content

V2.27.0

Choose a tag to compare

@jeremydmiller jeremydmiller released this 12 Jul 17:11
· 685 commits to main since this release

Daemon observability release — kills a class of invisible async-daemon death, found via a production incident at 512 tenant databases (JasperFx/marten#4941).

Closed issues

  • #506 — Block<T>: silent failures and dead consumers (PR #509). The default OnError sink is no longer Debug.WriteLine (compiled away in release builds); every daemon block wires OnError to the daemon logger + critical-failure reporting; and a block whose consumer dies now faults: Post/PostAsync throw with the terminal failure as inner exception, the channel completes with the failure (releasing producers block-waiting on a full bounded channel), and Block<T>.Failure exposes it. OnError is now part of IBlock<T>.
  • #507 — teardown catch-alls discarded any exception type (PR #509). The catch when (_cancellation.IsCancellationRequested) clauses now classify via the new CancellationExceptions.IsCancellationLike (OCE incl. wrapped/aggregated, ObjectDisposedException, DbException SqlStates 57014/class 08): genuine cancellation side effects stay quiet, anything else — e.g. a 23514 schema failure — is logged before the teardown discards it.
  • #505 — source-gen evolver emitted an un-parenthesized cast (PR #508). (T)RuntimeHelpers.GetUninitializedObject(...).Apply(data) resolved Apply against object → CS1061 for aggregates with no parameterless ctor + instance Apply returning the aggregate. Both sync emit paths now use the same two-statement form as the async path. Reaches most users bundled inside Marten ≥ 9.15.0's analyzers.

Thanks to @erdtsieck for dump-verified forensics on #506/#507 and @chrisbbe for the precise #505 repro.