Repository navigation
Bump the weasel group with 1 update - #3994
Closed
dependabot[bot] wants to merge 1 commit into
Closed
dependabot[bot] wants to merge 1 commit into
dependabot[bot] wants to merge 1 commit into
Conversation
Bumps Marten from 9.40.0 to 9.41.0 --- updated-dependencies: - dependency-name: Marten dependency-version: 9.41.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: weasel ... Signed-off-by: dependabot[bot] <support@github.com>
Contributor
Author
|
Looks like Marten is updatable in another way, so this is no longer needed. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Updated Marten from 9.40.0 to 9.41.0.
Release notes
Sourced from Marten's releases.
9.41.0
Upgrade if you use
IsolationLevel.Serializable. The first item below is a silent lost update, and it has been present since the write-retry pipeline shipped. The two items after it change behaviour you may be relying on.🛑 Data integrity:
Serializablesessions could silently lose an update#5528. A session opened with
IsolationLevel.Serializable(orRepeatableRead) did not reliably protect against a lost update. PostgreSQL detected the write conflict correctly and Marten discarded the detection by retrying.Two serializable sessions each load the same document at
Amount = 100. One commits100 - 500. The other should be refused withConcurrentUpdateException; instead it committed100 - 350on top, and the first session's write was gone with no error raised anywhere. From the server's own log:WriteRetryClassifier(#5262) listed40001 serialization_failureas safe to replay, on the reasoning that the server had rolled the transaction back and said so — which is true, and turned out to be necessary but not sufficient. A replay re-issues the operations already computed, rather than re-running the application code that produced them, and a serialization failure means precisely that the snapshot those operations were derived from is no longer a valid basis for them. The replay opens a new transaction with a fresh snapshot, so the conflict is gone and the write lands.40001is now never replayed and surfaces asConcurrentUpdateException, which is what Marten already translated it to. If you opted intoSerializableyou should expect to start seeing that exception — handle it by re-reading and recomputing, which is the only place the conflict can be resolved. Nothing inside Marten requests these isolation levels, so the async daemon and every defaultReadCommittedsession are unaffected.40P01 deadlock_detectedstays retryable deliberately: a deadlock aborts over lock ordering rather than a rejected snapshot, and replaying it is the textbook remedy atReadCommitted. A deadlock retry underSerializablereplays stale-snapshot work for the same structural reason, and the honest fix needs the isolation level plumbed into the classifier — recorded as a known gap rather than guessed at.This went unnoticed because the test that catches it lives in
StressTests, which has had no CI job since 2026-08-08.#5526.
Events.UseAdvisoryLockTransactionnow defaults to false, soHotColdleader election uses a session-scopedpg_try_advisory_lockrather than a transaction-scopedpg_try_advisory_xact_lock. The transaction-scoped lock had been the default since 8.37.3 (April 2026).The reason is what the transaction-scoped lock costs while it works: the leader holds an open transaction for as long as it holds leadership, which on a long-lived daemon is an indefinitely long-running transaction sitting on the connection — with everything that implies for vacuum and for anything watching transaction age.
The transaction-scoped lock is still the better fit behind PgBouncer in transaction pooling mode, which can hand a session-scoped lock's server connection to another client. If that is your deployment, opt back in explicitly:
DefaultTenantUsageDisabledExceptionis no longer aMartenException#5514.
Marten.Exceptions.DefaultTenantUsageDisabledExceptionnow derives fromJasperFx.Events.DefaultTenantUsageDisabledException.JasperFx.Eventscarries this exception so that code can handle the refusal once across Critter Stack stores, and its own contract is that stores subclass it. Polecat did; Marten did not. The consequence was not an error anywhere — a store-agnosticcatch (JasperFx.Events.DefaultTenantUsageDisabledException)compiled, read as if it handled the refusal, and let it through unhandled on Marten only. That is the failure mode this fixes.Multiple inheritance is not available, so it is one base or the other, and the cross-store catch was judged worth more than the marker base. If you rely on a broad
catch (MartenException)to handle this refusal, it will no longer be caught — catch the exception itself, or the JasperFx base. The message is unchanged, including the single-argument overload's behaviour of appending to the standard prefix.Also gone with the reparenting: the
protected (SerializationInfo, StreamingContext)constructor, because the JasperFx base declares none to chain to. Binary serialization of exceptions has been obsolete since .NET 8.... (truncated)
Commits viewable in compare view.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore <dependency name> major versionwill close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)@dependabot ignore <dependency name> minor versionwill close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)@dependabot ignore <dependency name>will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)@dependabot unignore <dependency name>will remove all of the ignore conditions of the specified dependency@dependabot unignore <dependency name> <ignore condition>will remove the ignore condition of the specified dependency and ignore conditions