Repository navigation
9.16.3
What's Changed
Fixes
-
A disposed
NpgsqlDataSourceis now terminal inAdvisoryLock.TryAttainLockAsyncby @jeremydmiller in #354 — fixes marten#4915Weasel 9.16.2 (#349) caught the disposed-pool
ObjectDisposedExceptioninTryAttainLockAsyncand returnedfalse. But inProjectionCoordinatorBase.executeAsync,falsefalls into the "stop the agents, sleepLeadershipPollingTime, poll again" branch — so a disposed data source produced an unbounded churn of aborted opens, and the coordinator'scatch (ObjectDisposedException)(added by #500 for exactly this state) could never fire.A disposed
NpgsqlDataSourcenever comes back, so the state is terminal, and the catch now does both halves of that: it latches_disposedso a caller that keeps polling is answered from the short-circuit rather than re-opening a dead pool, and it rethrows so the coordinator's existing catch ends the leadership loop. This restores the pre-9.16.2 escape while keeping #349's actual goal — stopping the churn rather than hiding the exception.Both consumers of
IAdvisoryLock.TryAttainLockAsync(Marten and Polecat) route throughProjectionCoordinatorBase, which has caughtObjectDisposedExceptionsince JasperFx 2.24.1.Diagnosed in #353 by @steve-ziegler.
Full Changelog: 9.16.2...9.16.3