Skip to content

Commit

Permalink
Merge pull request #1647 from levimalott/fix/recover-from-failed-clea…
Browse files Browse the repository at this point in the history
…nup-rollbacks

Log, but allow, failures during cleanup rollbacks.
  • Loading branch information
drewbanin committed Aug 2, 2019
2 parents 9e07912 + 0927093 commit 4478a89
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion core/dbt/adapters/base/connections.py
Expand Up @@ -248,7 +248,13 @@ def commit(self):
@classmethod
def _rollback_handle(cls, connection):
"""Perform the actual rollback operation."""
connection.handle.rollback()
try:
connection.handle.rollback()
except Exception:
logger.debug(
'Failed to rollback {}'.format(connection.name),
exc_info=True
)

@classmethod
def _close_handle(cls, connection):
Expand Down

0 comments on commit 4478a89

Please sign in to comment.