From: armando-migliaccio Date: Thu, 22 Oct 2015 01:10:24 +0000 (-0700) Subject: Add effective note on DB exception to be aware of X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=eb8ec9fab8c5d93ef1d4251123bc16aecaf6f633;p=openstack-build%2Fneutron-build.git Add effective note on DB exception to be aware of Change-Id: I249b0dcf8d5ebff3c6b72c0e4deb270f0275d3a4 --- diff --git a/doc/source/devref/effective_neutron.rst b/doc/source/devref/effective_neutron.rst index 3f6333afa..bc092e28b 100644 --- a/doc/source/devref/effective_neutron.rst +++ b/doc/source/devref/effective_neutron.rst @@ -98,6 +98,12 @@ Document common pitfalls as well as good practices done during database developm q = query(Object.id, Object.name, func.count(Object.number)).group_by(Object.id, Object.name) +* Beware of the `InvalidRequestError `_ exception. + There is even a `Neutron bug `_ + registered for it. Bear in mind that this error may also occur when nesting + transaction blocks, and the innermost block raises an error without proper + rollback. Consider if `savepoints `_ + can fit your use case. System development ~~~~~~~~~~~~~~~~~~