Skip to content

V2.32.0

Choose a tag to compare

@jeremydmiller jeremydmiller released this 20 Jul 21:31
· 653 commits to main since this release

Async daemon high-water reliability release. Packages JasperFx, JasperFx.Events, JasperFx.Events.SourceGenerator, JasperFx.SourceGenerator, and JasperFx.Aspire ship at 2.32.0; JasperFx.RuntimeCompiler stays at 5.0.0 (unchanged).

HighWaterAgent liveness heartbeat, staleness surface & local restart seam (#539)

The high-water watchdog previously restarted the poll loop only when it faulted. A loop that was alive but no longer completing cycles — a custom IDaemonWakeup that stopped firing, a stuck connection — never faulted, so a frozen high-water mark looked identical to "no new events" and a downstream daemon health check would read Healthy against a dead agent.

  • The high-water path now publishes a liveness heartbeat on every completed poll cycle (ShardState.LastHeartbeat + AgentStatus), proving the loop is cycling independent of whether the mark advances.
  • The watchdog restarts on faulted OR stale (no completed cycle within the new threshold), capped to once per window. Restart is non-blocking and never forces the mark forward.
  • Covers both high-water paths: the store-global HighWaterAgent and the per-tenant TenantedHighWaterCoordinator (partitioned stores).

New public surface

  • IProjectionDaemon: RestartHighWaterAgentAsync(CancellationToken), HighWaterLastPolledAt, IsHighWaterStale.
  • DaemonSettings.HighWaterStalenessThreshold (default 30s).
  • ShardAction: Faulted and Restarted.

Downstream note: the three new IProjectionDaemon members are implemented on the base JasperFxAsyncDaemon, so Marten/Polecat inherit them; any external direct implementer of IProjectionDaemon will need to add them.

Consumers: marten#4982, polecat#339, CritterWatch#774.

Daemon faulted-start teardown (#540)

A shard start that faulted after agent.StartAsync had spun up the execution pipeline was never registered in _agents and never stopped — leaving an orphan holding the shard's execution loop and a candidate for the permanent first-start wedge in wolverine#3519. A faulted start is now hard-stopped at the point of failure so it can't orphan the shard. (Companion to the #534 start-failure-cause propagation already shipped in 2.31.0; this teardown half landed after 2.31.0 was cut, so it first ships here.)


Full changelog: V2.28.0...V2.32.0