forked from Katello/katello
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #18122 - move rhsm fact update to run phase
During fact importing, RhsmFactName objects are created in large quantity. Because first_or_create is very susceptible to race conditions, we rescue on RecordNotUnique within RhsmFactImporter#add_fact_name. However if duplicate record exception is thrown while in a transaction the entire transaction is aborted. The run phase does not use a transaction so the problem should not occur there.
- Loading branch information
1 parent
d6f204f
commit 98bb66d
Showing
3 changed files
with
18 additions
and
6 deletions.
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
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