Merge "Log an exception when reconnect-to-disconnected occurs"

This commit is contained in:
Jenkins 2017-07-18 21:12:19 +00:00 committed by Gerrit Code Review
commit 2af0348d26
1 changed files with 2 additions and 0 deletions

View File

@ -77,6 +77,8 @@ def _connect_ping_listener(connection, branch):
# "invalid", but the pool should be ready to return
# new connections assuming they are good now.
# run the select again to re-validate the Connection.
LOG.exception(
'Database connection was found disconnected; reconnecting')
connection.scalar(select([1]))
finally:
connection.should_close_with_result = save_should_close_with_result