]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
sqlalchemy exception kills FixedIntervalLoopingCall thread
authorscottda <scott.dangelo@hp.com>
Thu, 30 Jul 2015 16:08:41 +0000 (16:08 +0000)
committerscottda <scott.dangelo@hp.com>
Thu, 30 Jul 2015 16:17:17 +0000 (16:17 +0000)
commitc0f6a6e9e9b8713d12a02b8441c7616c24871526
tree983d6e04bc30034be46fc0c48fda655dbe90b60e
parent9652106985a301b6eedf08819f5155da01058457
sqlalchemy exception kills FixedIntervalLoopingCall thread

Transient DB errors should not kill the thread for FixedIntervalLoopingCall.
This was noticed and fixed for the DBError case in Bug#1466991, but the
exception from sqlalchemy is not handled. Basically, self.model_disconnected
should be set to True, but the looping thread should carry on regardless of
the error.

Change-Id: I4bf04392269a2c33b77166b6c7408b38e1bc992d
Closes-Bug: #1478971
cinder/service.py