Skip to content

Set TransactionScope MaximumTimeout when API is ready #21101

Closed

Description

@wli3

We don't really use TransactionScope sematic to the fullest. The download is not atomic, the "commit" action (the right thing is to use atomic operation like File.Move) is missing. At the same time, TransactionScope has a hard code 10 minutes timeout in dotnet core.

dotnet/runtime#59282 is file for a proper API. Once it is done, we should use the feature instead.

Activity

  1. added this to the 6.0.2xx milestone on Sep 17, 2021
  2. ghost added
    untriagedRequest triage from a team member
    on Sep 17, 2021
  3. changed the title [-]Replace TransactionScope[/-] [+]Set TransactionScope MaximumTimeout when API is ready[/+] on Sep 17, 2021
  4. modified the milestones: 6.0.2xx, 7.0.1xx on Jan 5, 2022
  5. modified the milestones: 7.0.1xx, Backlog on Dec 7, 2022
  6. removed this from the Backlog milestone on Apr 9, 2025
  7. dsplaisted commented on Apr 9, 2025

    @dsplaisted
    Member

    The runtime added this API, so I think we could remove our private reflection code:

    SetTransactionManagerField("s_cachedMaxTimeout", true);
    SetTransactionManagerField("s_maximumTimeout", TimeSpan.Zero);

  8. added this to the 10.0.1xx milestone on Apr 15, 2025
  9. modified the milestones: 10.0.1xx, Backlog on Jul 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions