localytics / odbc_adapter

An ActiveRecord ODBC adapter
MIT License
46 stars 107 forks source link

Handle connection failure by trying to reconnect and translating the error to ConnectionFailedError so the caller knows to retry #32

Closed mshearer76 closed 5 years ago

mshearer76 commented 5 years ago

When an ODBC connection failure occurs, try to reconnect at least once before bubbling up the exception to the application. If we manage to reconnect, translate the error to a new ODBCAdapter:: ConnectionFailedError error so the ActiveRecord consumer can retry.