{"action":"created","issue":{"url":"https://api.github.com/repos/brettwooldridge/HikariCP/issues/381","labels_url":"https://api.github.com/repos/brettwooldridge/HikariCP/issues/381/labels{/name}","comments_url":"https://api.github.com/repos/brettwooldridge/HikariCP/issues/381/comments","events_url":"https://api.github.com/repos/brettwooldridge/HikariCP/issues/381/events","html_url":"https://github.com/brettwooldridge/HikariCP/issues/381","id":100814941,"number":381,"title":"Timeout after 20005ms of waiting for a connection","user":{"login":"richfwebb","id":11443554,"avatar_url":"https://avatars.githubusercontent.com/u/11443554?v=3","gravatar_id":"","url":"https://api.github.com/users/richfwebb","html_url":"https://github.com/richfwebb","followers_url":"https://api.github.com/users/richfwebb/followers","following_url":"https://api.github.com/users/richfwebb/following{/other_user}","gists_url":"https://api.github.com/users/richfwebb/gists{/gist_id}","starred_url":"https://api.github.com/users/richfwebb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/richfwebb/subscriptions","organizations_url":"https://api.github.com/users/richfwebb/orgs","repos_url":"https://api.github.com/users/richfwebb/repos","events_url":"https://api.github.com/users/richfwebb/events{/privacy}","received_events_url":"https://api.github.com/users/richfwebb/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-08-13T16:38:38Z","updated_at":"2015-08-14T13:46:28Z","closed_at":"2015-08-14T13:46:28Z","body":"My project has been working well, but recently I changed the queueSize config variable to -1 (unlimited) to resolve a previous error, and I upgraded to java8. I am not sure why I am getting this timeout error recently, as it did not appear to be an immediate consequence of the changes I made.  Sometimes the timeout error resolves itself if I restart SBT.\r\n\r\nPlease let me know any further information I can provide for solving this issue.\r\n\r\nMy Configuration:\r\n\r\n```\r\ndefault_db {\r\n  url = \"jdbc:mysql://\"${MYHOST}\"/myproj\"\r\n  user = ...\r\n  password = ...\r\n  queueSize = -1\r\n  numThreads = 16\r\n  connectionPool = HikariCP\r\n  connectionTimeout = 20000\r\n  maxConnections = 40\r\n}\r\n```\r\n\r\n```\r\n\"err\":{\"message\":\"Timeout after 20005ms of waiting for a connection.\",\"stackTrace\":[{\"file\":\"BaseHikariPool.java\",\"line\":228,\"className\":\"com.zaxxer.hikari.pool.BaseHikariPool\",\"method\":\"getConnection\"},{\"file\":\"BaseHikariPool.java\",\"line\":183,\"className\":\"com.zaxxer.hikari.pool.BaseHikariPool\",\"method\":\"getConnection\"},{\"file\":\"HikariDataSource.java\",\"line\":91,\"className\":\"com.zaxxer.hikari.HikariDataSource\",\"method\":\"getConnection\"},{\"file\":\"JdbcDataSource.scala\",\"line\":131,\"className\":\"scala.slick.jdbc.HikariCPJdbcDataSource\",\"method\":\"createConnection\"},{\"file\":\"JdbcBackend.scala\",\"line\":362,\"className\":\"scala.slick.jdbc.JdbcBackend$BaseSession\",\"method\":\"conn$lzycompute\"},{\"file\":\"JdbcBackend.scala\",\"line\":362,\"className\":\"scala.slick.jdbc.JdbcBackend$BaseSession\",\"method\":\"conn\"},{\"file\":\"JdbcBackend.scala\",\"line\":241,\"className\":\"scala.slick.jdbc.JdbcBackend$SessionDef$class\",\"method\":\"prepareStatement\"},{\"file\":\"JdbcBackend.scala\",\"line\":354,\"className\":\"scala.slick.jdbc.JdbcBackend$BaseSession\",\"method\":\"prepareStatement\"},{\"file\":\"StatementInvoker.scala\",\"line\":32,\"className\":\"scala.slick.jdbc.StatementInvoker\",\"method\":\"results\"},{\"file\":\"StatementInvoker.scala\",\"line\":22,\"className\":\"scala.slick.jdbc.StatementInvoker\",\"method\":\"iteratorTo\"},{\"file\":\"Invoker.scala\",\"line\":15,\"className\":\"scala.slick.jdbc.Invoker$class\",\"method\":\"iterator\"},{\"file\":\"StatementInvoker.scala\",\"line\":16,\"className\":\"scala.slick.jdbc.StatementInvoker\",\"method\":\"iterator\"},{\"file\":\"Invoker.scala\",\"line\":57,\"className\":\"scala.slick.jdbc.Invoker$class\",\"method\":\"foreach\"},{\"file\":\"StatementInvoker.scala\",\"line\":16,\"className\":\"scala.slick.jdbc.StatementInvoker\",\"method\":\"foreach\"},{\"file\":\"JdbcActionComponent.scala\",\"line\":109,\"className\":\"scala.slick.driver.JdbcActionComponent$StreamingResultAction\",\"method\":\"run\"},{\"file\":\"DatabaseComponent.scala\",\"line\":193,\"className\":\"scala.slick.backend.DatabaseComponent$DatabaseDef$$anon$2\",\"method\":\"liftedTree1$1\"},{\"file\":\"DatabaseComponent.scala\",\"line\":193,\"className\":\"scala.slick.backend.DatabaseComponent$DatabaseDef$$anon$2\",\"method\":\"run\"},{\"file\":\"ThreadPoolExecutor.java\",\"line\":1142,\"className\":\"java.util.concurrent.ThreadPoolExecutor\",\"method\":\"runWorker\"},{\"file\":\"ThreadPoolExecutor.java\",\"line\":617,\"className\":\"java.util.concurrent.ThreadPoolExecutor$Worker\",\"method\":\"run\"},{\"file\":\"Thread.java\",\"line\":745,\"className\":\"java.lang.Thread\",\"method\":\"run\"}]},\"status\":200}\r\n```"},"comment":{"url":"https://api.github.com/repos/brettwooldridge/HikariCP/issues/comments/131109707","html_url":"https://github.com/brettwooldridge/HikariCP/issues/381#issuecomment-131109707","issue_url":"https://api.github.com/repos/brettwooldridge/HikariCP/issues/381","id":131109707,"user":{"login":"richfwebb","id":11443554,"avatar_url":"https://avatars.githubusercontent.com/u/11443554?v=3","gravatar_id":"","url":"https://api.github.com/users/richfwebb","html_url":"https://github.com/richfwebb","followers_url":"https://api.github.com/users/richfwebb/followers","following_url":"https://api.github.com/users/richfwebb/following{/other_user}","gists_url":"https://api.github.com/users/richfwebb/gists{/gist_id}","starred_url":"https://api.github.com/users/richfwebb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/richfwebb/subscriptions","organizations_url":"https://api.github.com/users/richfwebb/orgs","repos_url":"https://api.github.com/users/richfwebb/repos","events_url":"https://api.github.com/users/richfwebb/events{/privacy}","received_events_url":"https://api.github.com/users/richfwebb/received_events","type":"User","site_admin":false},"created_at":"2015-08-14T13:46:28Z","updated_at":"2015-08-14T13:46:28Z","body":"Thanks!"}}