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

failure with insert principal where 2 roles are created simultaneously with the same new member #2368

Merged
merged 1 commit into from
Oct 22, 2023

Conversation

havetisyan
Copy link
Collaborator

@havetisyan havetisyan commented Oct 22, 2023

Description

further improvement for handling issue #2364
when we get 0 results or a duplicate exception, it's possible that when the server goes to read the principal id, the other transaction is not committed yet so it still returns no results. To handle this completely we now return a sql exception with conflict state and this gets converted into conflict resource exception and then the DB service class receives this exception it tries to retry the operation again.

Contribution Checklist:

  • The pull request does not introduce any breaking changes
  • I have read the contribution guidelines.
  • Create an issue and link to the pull request.

Attach Screenshots (Optional)

…y with the same new member

Signed-off-by: Henry Avetisyan <hga@yahooinc.com>
@abvaidya abvaidya merged commit de0a374 into master Oct 22, 2023
2 checks passed
@abvaidya abvaidya deleted the principal2 branch October 22, 2023 23:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants