Repository navigation
JasperFx 2.101.1
JasperFx 2.101.1 is a patch release with one fix.
- Overlapping
StopAsync/PauseAsynccalls on the projection coordinator no longer throwObjectDisposedException(#1148 / #1149).- What was broken:
ProjectionCoordinatorBaseread, 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
RunCommandstops the host again whenApplicationStoppingfires, so tests hosting an app throughWebApplicationFactoryor Alba had twoIHost.StopAsynccalls 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
ProjectionCoordinatorpick this up from the base class. Marten'sExplicitProjectionCoordinatorhas its own fix in JasperFx/marten#5843.
- What was broken:
- CI: concurrency stress tests now live in a separate
StressTestsproject 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