Actions
Refactor #21639
closedunique constraints should be enforced in the DB as well
Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Database
Target version:
-
Description
ActiveRecord unique constraints might not be properly enforced when Foreman is run in multiple processes due to "Time of Check - Time of Use" errors.
All unique constraints should also be enforced by database index constraints which will prevent invalid duplicate entries.
Updated by Tomer Brisker about 7 years ago
- Blocked by Bug #21766: Duplicate entries in taxable_taxonomies table added
Updated by Tomer Brisker about 7 years ago
- Blocked by Bug #21926: Compute-resource image creation allows duplicate name added
Updated by Amit Upadhye over 3 years ago
Tomer Brisker wrote:
ActiveRecord unique constraints might not be properly enforced when Foreman is run in multiple processes due to "Time of Check - Time of Use" errors.
All unique constraints should also be enforced by database index constraints which will prevent invalid duplicate entries.
I can see both the subtasks are completed, should we close this tracker?
Updated by Tomer Brisker over 3 years ago
- Status changed from New to Resolved
good point, closing this one.
Actions