{"action":"created","issue":{"url":"https://api.github.com/repos/playframework/play-slick/issues/275","repository_url":"https://api.github.com/repos/playframework/play-slick","labels_url":"https://api.github.com/repos/playframework/play-slick/issues/275/labels{/name}","comments_url":"https://api.github.com/repos/playframework/play-slick/issues/275/comments","events_url":"https://api.github.com/repos/playframework/play-slick/issues/275/events","html_url":"https://github.com/playframework/play-slick/issues/275","id":86887781,"number":275,"title":"If Database is down Slick will prevent the Server from starting","user":{"login":"schmitch","id":1641401,"avatar_url":"https://avatars.githubusercontent.com/u/1641401?v=3","gravatar_id":"","url":"https://api.github.com/users/schmitch","html_url":"https://github.com/schmitch","followers_url":"https://api.github.com/users/schmitch/followers","following_url":"https://api.github.com/users/schmitch/following{/other_user}","gists_url":"https://api.github.com/users/schmitch/gists{/gist_id}","starred_url":"https://api.github.com/users/schmitch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schmitch/subscriptions","organizations_url":"https://api.github.com/users/schmitch/orgs","repos_url":"https://api.github.com/users/schmitch/repos","events_url":"https://api.github.com/users/schmitch/events{/privacy}","received_events_url":"https://api.github.com/users/schmitch/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/playframework/play-slick/labels/invalid","name":"invalid","color":"e6e6e6"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2015-06-10T08:29:57Z","updated_at":"2016-04-30T16:01:37Z","closed_at":"2015-06-10T14:45:24Z","body":"Hello, currently it's not a good practice to let the server fail any time due to a java.sql.SQLTimeoutException.\r\nI mean when a SQL Server is running in Master -> Slave while the Master got killed and the slave is trying to be the new Master the application will fail even when the database is offline for a small amount of time.\r\n\r\n```\r\nJun 10 10:22:50 loki1 envisia-erp-loki[2244]: Oops, cannot start the server.\r\nJun 10 10:22:50 loki1 envisia-erp-loki[2244]: java.sql.SQLTimeoutException: Timeout after 1001ms of waiting for a connection.\r\nJun 10 10:22:50 loki1 envisia-erp-loki[2244]: at com.zaxxer.hikari.pool.BaseHikariPool.getConnection(BaseHikariPool.java:227)\r\nJun 10 10:22:50 loki1 envisia-erp-loki[2244]: at com.zaxxer.hikari.pool.BaseHikariPool.getConnection(BaseHikariPool.java:182)\r\nJun 10 10:22:50 loki1 envisia-erp-loki[2244]: at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:93)\r\nJun 10 10:22:50 loki1 envisia-erp-loki[2244]: at slick.jdbc.HikariCPJdbcDataSource.createConnection(JdbcDataSource.scala:131)\r\nJun 10 10:22:50 loki1 envisia-erp-loki[2244]: at slick.jdbc.JdbcBackend$BaseSession.conn$lzycompute(JdbcBackend.scala:394)\r\nJun 10 10:22:50 loki1 envisia-erp-loki[2244]: at slick.jdbc.JdbcBackend$BaseSession.conn(JdbcBackend.scala:394)\r\nJun 10 10:22:50 loki1 envisia-erp-loki[2244]: at play.api.db.slick.evolutions.internal.DBApiAdapter$DatabaseAdapter.getConnection(DBApiAdapter.scala:54)\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/playframework/play-slick/issues/comments/215975300","html_url":"https://github.com/playframework/play-slick/issues/275#issuecomment-215975300","issue_url":"https://api.github.com/repos/playframework/play-slick/issues/275","id":215975300,"user":{"login":"dsounded","id":3995852,"avatar_url":"https://avatars.githubusercontent.com/u/3995852?v=3","gravatar_id":"","url":"https://api.github.com/users/dsounded","html_url":"https://github.com/dsounded","followers_url":"https://api.github.com/users/dsounded/followers","following_url":"https://api.github.com/users/dsounded/following{/other_user}","gists_url":"https://api.github.com/users/dsounded/gists{/gist_id}","starred_url":"https://api.github.com/users/dsounded/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dsounded/subscriptions","organizations_url":"https://api.github.com/users/dsounded/orgs","repos_url":"https://api.github.com/users/dsounded/repos","events_url":"https://api.github.com/users/dsounded/events{/privacy}","received_events_url":"https://api.github.com/users/dsounded/received_events","type":"User","site_admin":false},"created_at":"2016-04-30T16:01:37Z","updated_at":"2016-04-30T16:01:37Z","body":"Any updates ?"}}