Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Preserve distributed transactions on pooled connection reset#3019

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
mdaigle merged 11 commits intodotnet:mainfrommdaigle:preserve-transaction
Jan 15, 2025

Conversation

mdaigle
Copy link
Contributor

@mdaiglemdaigle commentedNov 18, 2024
edited
Loading

The current behavior only preserves transaction state for the root transaction. Enlisted connections that are reset will be placed in the transacted connection pool, but in some situations, will no longer participate in the transaction. The next connection to request the connection will expect it to be participating in the transaction, but actions on the connection will auto-commit.

This changes the reset logic to preserve transaction state for enlisted connections (part of a distributed transaction, but not root).

@mdaigle
Copy link
ContributorAuthor

/azp run

@azure-pipelinesAzure Pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mdaiglemdaigle changed the titlePreserve distributed transactions on connection resetPreserve distributed transactions on pooled connection resetNov 18, 2024
@codecovCodecov
Copy link

codecovbot commentedNov 20, 2024
edited
Loading

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 72.70%. Comparing base(bb4c3b7) to head(8b5c409).
Report is 15 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@##             main    #3019      +/-   ##==========================================+ Coverage   72.68%   72.70%   +0.01%==========================================  Files         283      283                Lines       58975    58976       +1     ==========================================+ Hits        42864    42876      +12+ Misses      16111    16100      -11
FlagCoverage Δ
addons92.58% <ø> (ø)
netcore75.54% <100.00%> (+0.05%)⬆️
netfx71.16% <100.00%> (+0.01%)⬆️

Flags with carried forward coverage won't be shown.Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report?Share it here.

@mdaiglemdaigle marked this pull request as ready for reviewNovember 20, 2024 17:17
@mdaiglemdaigle linked an issueNov 20, 2024 that may beclosed by this pull request
@mdaiglemdaigle added the Bug! 🐛Issues that are bugs in the drivers we maintain. labelNov 25, 2024
@@ -1075,9 +1075,11 @@ private void ResetConnection()
// distributed transaction - otherwise don't reset!
if (Is2000)
Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Leaving Is2000 logic in place for now until we remove support for it. The fix will not apply to versions before 2000.


[ConditionalFact(typeof(DataTestUtility), nameof(DataTestUtility.AreConnStringsSetup), Timeout = 10000)]

public void Test_EnlistedTransactionPreservedWhilePooled()
Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Verified that these tests currently fail when run on main against an azure db.

@mdaiglemdaigle requested review frombenrr101 anda teamJanuary 2, 2025 22:08
@mdaiglemdaigle added this to the7.0-preview1 milestoneJan 8, 2025
@mdaiglemdaigle merged commit0322d44 intodotnet:mainJan 15, 2025
130 checks passed
@mdaiglemdaigle deleted the preserve-transaction branchJanuary 15, 2025 18:38
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@ErikEJErikEJErikEJ left review comments

@cheenamalhotracheenamalhotracheenamalhotra approved these changes

@paulmedynskipaulmedynskipaulmedynski approved these changes

@benrr101benrr101Awaiting requested review from benrr101

Assignees
No one assigned
Labels
Bug! 🐛Issues that are bugs in the drivers we maintain.
Projects
None yet
Milestone
6.1-preview1
Development

Successfully merging this pull request may close these issues.

Azure SQL DTC bug
5 participants
@mdaigle@benrr101@ErikEJ@cheenamalhotra@paulmedynski

[8]ページ先頭

©2009-2025 Movatter.jp