LiveRamp/jack

connection reset not handled internally and the ability to reset the connection isn't exposed

seancarr opened this issue · 1 comments

When we switch which db is running as our master requests to the old one are given an exception response telling them to reset their connection (so they get the correct master). Currently jack doesn't handle this internally (which is fine) but there is also no exposed method for resetting the db connection if the application wants to handle this case. DatabaseConnection has a resetConnection() method that is all we need. Potentially it could be exposed via IDb.

Why can't you just call resetConnection() on your DatabaseConnection separately from Jack-generated stuff? DatabaseConnection caches connections, so it should give you back the same instance.