]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Stop logging deadlock tracebacks
authorKevin Benton <blak111@gmail.com>
Fri, 4 Sep 2015 12:33:46 +0000 (05:33 -0700)
committerKevin Benton <blak111@gmail.com>
Fri, 4 Sep 2015 12:42:10 +0000 (05:42 -0700)
commita93886278f1308ae78c65b4ad36ee7648cad2914
tree4618e435a2fe41f899af27712ae029a6593de1f0
parent6a845249d0bb004141b63c74ce80f6f68ae4a250
Stop logging deadlock tracebacks

The oslo db retry decorator logs a traceback everytime a deadlock
is encountered even though it is being retried. With multiple workers
and a Galera cluster, deadlocks are common occurences due to our use
of with_lockmode update so we should not be polluting the logs.

This patch adjusts our usage of the retry decorator to catch deadlocks
with the exception checker which does not log them until the retries
are exhausted.

Change-Id: I433fbbad61070e20ebe934b9247e36fc190fa3e0
neutron/db/api.py
neutron/db/quota/driver.py
neutron/plugins/ml2/drivers/type_tunnel.py
neutron/plugins/ml2/plugin.py
neutron/quota/resource.py