Skip to content

JasperFx 2.101.1

Choose a tag to compare

@jeremydmiller jeremydmiller released this 09 Nov 13:46
· 179 commits to main since this release

JasperFx 2.101.1 is a patch release with one fix.

  • Overlapping StopAsync / PauseAsync calls on the projection coordinator no longer throw ObjectDisposedException (#1148 / #1149).
    • What was broken: ProjectionCoordinatorBase read, awaited across, then disposed and replaced its shared cancellation source and runner with nothing serializing callers. Two stops in flight at once could cancel a source the other had just disposed. Two starts in flight at once could each build a leadership loop, leaving one running that nothing would ever cancel.
    • When it happened: JasperFx's RunCommand stops the host again when ApplicationStopping fires, so tests hosting an app through WebApplicationFactory or Alba had two IHost.StopAsync calls racing at teardown.
    • How it works now: start, pause and stop are serialized, so overlapping calls behave like sequential ones: the first stop tears down and the rest find nothing left to do. Marten's and Polecat's ProjectionCoordinator pick this up from the base class. Marten's ExplicitProjectionCoordinator has its own fix in JasperFx/marten#5843.
  • CI: concurrency stress tests now live in a separate StressTests project that runs its tests one at a time, so they can't starve timing-sensitive tests of thread-pool threads.

What's Changed

  • Serialize ProjectionCoordinatorBase lifecycle calls so overlapping stops cannot race (#1148) by @jeremydmiller in #1149

Full Changelog: v2.101.0...v2.101.1