commit 68bf3fcaad0fbaa932c719ce587266276a9cdd55
Author: Thomas Herve <email address hidden>
Date: Wed Oct 21 16:00:08 2015 +0200
Fix race condition in stack listing
When listing stacks, we first load them from the database, and then we
load their template in a different transaction. If a stack is deleted in
the mean time, loading the template will raise a NotFound exception, and
will make the listing returns NotFound, instead of ignoring that stack.
This patch handles the exception and continue to try to load stacks.
Reviewed: https:/ /review. openstack. org/238106 /git.openstack. org/cgit/ openstack/ heat/commit/ ?id=68bf3fcaad0 fbaa932c719ce58 7266276a9cdd55
Committed: https:/
Submitter: Jenkins
Branch: master
commit 68bf3fcaad0fbaa 932c719ce587266 276a9cdd55
Author: Thomas Herve <email address hidden>
Date: Wed Oct 21 16:00:08 2015 +0200
Fix race condition in stack listing
When listing stacks, we first load them from the database, and then we
load their template in a different transaction. If a stack is deleted in
the mean time, loading the template will raise a NotFound exception, and
will make the listing returns NotFound, instead of ignoring that stack.
This patch handles the exception and continue to try to load stacks.
Change-Id: Iba6db81e3c1031 0955928fe723b84 b5f62fc3fc1
Closes-Bug: #1508390