-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature: improve resilience when deleting the secrets from Sources (#…
…3211) Before this patch, if reporting the integration deletion to the Kessel Inventory failed, the secrets were deleted from Sources but the integration deletion would be rolled back in the database, which left it in an invalid state unable to fetch the associated secrets from Sources. With this patch: - If deleting the integration from the database goes wrong, the transaction gets rolled back and nothing gets changed. - If deleting the integration from Kessel goes wrong, the transaction is rolled back and the above point applies. - If deleting the integration's secrets' from Sources goes wrong, the first point still applies and we make sure that the integration gets recreated in Inventory. This should give us enough resiliency to avoid invalid states with integrations in Notifications and the services we depend upon. RHCLOUD-35158
- Loading branch information
1 parent
5febd2c
commit bf71508
Showing
2 changed files
with
105 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters