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

during delete tenancy check the primary db instance #2743

Merged
merged 1 commit into from
Sep 28, 2024

Conversation

havetisyan
Copy link
Collaborator

@havetisyan havetisyan commented Sep 27, 2024

Description

when we're checking the tenancy registration, the server would update the primary db instance with the role deletions but then would check the replica for any role existence to remove the domain dependency. if the db was slow and the changes were not propagated immediately, it would think there are still valid resource groups and not remove the dependency. Now we're checking the primary instance as well. Also simplified the calls to look for the roles and remove any unnecessary lookups.

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)

Signed-off-by: Henry Avetisyan <hga@yahooinc.com>
@havetisyan havetisyan merged commit 9a6f992 into master Sep 28, 2024
6 checks passed
@havetisyan havetisyan deleted the delete-tenancy branch September 28, 2024 08:13
havetisyan added a commit that referenced this pull request Sep 30, 2024
…from master to the jett-12 branch

Signed-off-by: Henry Avetisyan <hga@yahooinc.com>
havetisyan added a commit that referenced this pull request Sep 30, 2024
…from master to the jett-12 branch (#2749)

Signed-off-by: Henry Avetisyan <hga@yahooinc.com>
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