Repository navigation
V2.27.0
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 defaultOnErrorsink is no longerDebug.WriteLine(compiled away in release builds); every daemon block wiresOnErrorto the daemon logger + critical-failure reporting; and a block whose consumer dies now faults:Post/PostAsyncthrow with the terminal failure as inner exception, the channel completes with the failure (releasing producers block-waiting on a full bounded channel), andBlock<T>.Failureexposes it.OnErroris now part ofIBlock<T>. - #507 — teardown catch-alls discarded any exception type (PR #509). The
catch when (_cancellation.IsCancellationRequested)clauses now classify via the newCancellationExceptions.IsCancellationLike(OCE incl. wrapped/aggregated,ObjectDisposedException,DbExceptionSqlStates57014/class08): genuine cancellation side effects stay quiet, anything else — e.g. a23514schema failure — is logged before the teardown discards it. - #505 — source-gen evolver emitted an un-parenthesized cast (PR #508).
(T)RuntimeHelpers.GetUninitializedObject(...).Apply(data)resolvedApplyagainstobject→ CS1061 for aggregates with no parameterless ctor + instanceApplyreturning 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.