Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

"closing all connections" infinite loop #966

Closed
drdozer opened this Issue · 1 comment

3 participants

@drdozer

Consider:

class Boot {
...
def boot() {
...
if (!DB.jndiJdbcConnAvailable_?) {
DB.defineConnectionManager(DefaultConnectionIdentifier, DBVendor)

  LiftRules.unloadHooks.append(() =>
    DBVendor.closeAllConnections_!())
}

...

When this code has run, there is an unload hook registered. If later the initialization of the database connection fails, then during shutdown we get an infinite printing of:

20:31:37.775 [Shutdown] INFO net.liftweb.mapper.ProtoDBVendor - Closing all connections

This prevents the container from exiting.

@dpp dpp was assigned
@etorreborre etorreborre referenced this issue from a commit in etorreborre/framework
@dpp dpp Closed #966. No more inifinite loop closing connections 0e17bce
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.