Deletion of deep trees of objects can fail with MySQL
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mistral |
Fix Released
|
High
|
Andras Kovi |
Bug Description
The MySQL reference states[1]:
"If ON UPDATE CASCADE or ON UPDATE SET NULL recurses to update the same table it has previously updated during the same cascade, it acts like RESTRICT. This means that you cannot use self-referential ON UPDATE CASCADE or ON UPDATE SET NULL operations. This is to prevent infinite loops resulting from cascaded updates. A self-referential ON DELETE SET NULL, on the other hand, is possible, as is a self-referential ON DELETE CASCADE. Cascading operations may not be nested more than 15 levels deep."
As a result, deep execution hierarchies are not possible to be deleted from the root and fail with an error like:
(pymysql.
[SQL: DELETE FROM workflow_
[parameters: {u'project_id_1': '<default-
(Background on this error at: http://
Same error can happen on PGsql. But there the modification of stack size may mitigate the issue.
[1] https:/
Changed in mistral: | |
assignee: | nobody → Andras Kovi (akovi) |
Changed in mistral: | |
status: | New → Fix Released |
milestone: | none → train-1 |
importance: | Undecided → High |
This issue was fixed in the openstack/mistral 9.0.0.0b1 development milestone.