Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Treat Sql Error Number 1222 as Transient #31725

Merged
merged 1 commit into from
Sep 14, 2023

Conversation

freakingawesome
Copy link
Contributor

Error number 1222 is defined as

Lock request time out period exceeded

And official Microsoft recommendation is to retry the transaction after it has been aborted Source

Fixes #31724

  • I've read the guidelines for contributing and seen the walkthrough
  • I've posted a comment on an issue with a detailed description of how I am planning to contribute and got approval from a member of the team
  • The code builds and tests pass locally (also verified by our automated build checks)
  • Commit messages follow this format:
        Summary of the changes
        - Detail 1
        - Detail 2

        Fixes #bugnumber
  • Tests for the changes have been added (for bug fixes / features)
  • Code follows the same patterns and style as existing code in this repo

Error number 1222 is defined as

> Lock request time out period exceeded

And official Microsoft recommendation is to retry the transaction after it has been aborted [Source](https://learn.microsoft.com/en-us/sql/relational-databases/errors-events/mssqlserver-1222-database-engine-error)

Fixes dotnet#31724
@roji
Copy link
Member

roji commented Sep 14, 2023

LGTM but @AndriySvyryd is the boss here

@AndriySvyryd AndriySvyryd merged commit 301b01b into dotnet:release/8.0 Sep 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Treat SQL Server Error Number 1222 as Transient (Lock request time out period exceeded)
3 participants