commit 27b2f22df10e6e41c6fc4e1ce7f839aeb3dc3e13
Author: Sebastian Lohff <email address hidden>
Date: Tue Mar 12 19:34:17 2024 +0100
Don't delete already deleted extra router routes
When handling the deletion of extra routes we need to handle the case
that the route is already deleted by another call in the time we have
fetched the extra routes and try to delete it. This is a classic race
condition when two calls try to update the routes of a router at the
same time. The default MariaDB/MySQL transaction isolation level does
not suffice to prevent this scenario. Directly deleting the route
without fetching it solves this problem.
Reviewed: https:/ /review. opendev. org/c/openstack /neutron/ +/912629 /opendev. org/openstack/ neutron/ commit/ 27b2f22df10e6e4 1c6fc4e1ce7f839 aeb3dc3e13
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 27b2f22df10e6e4 1c6fc4e1ce7f839 aeb3dc3e13
Author: Sebastian Lohff <email address hidden>
Date: Tue Mar 12 19:34:17 2024 +0100
Don't delete already deleted extra router routes
When handling the deletion of extra routes we need to handle the case
that the route is already deleted by another call in the time we have
fetched the extra routes and try to delete it. This is a classic race
condition when two calls try to update the routes of a router at the
same time. The default MariaDB/MySQL transaction isolation level does
not suffice to prevent this scenario. Directly deleting the route
without fetching it solves this problem.
Change-Id: Ie8238310569eb7 c1c53296195800b ef5c9cb92a3
Closes-Bug: #2057698