{"action":"created","issue":{"url":"https://api.github.com/repos/tgriesser/knex/issues/842","labels_url":"https://api.github.com/repos/tgriesser/knex/issues/842/labels{/name}","comments_url":"https://api.github.com/repos/tgriesser/knex/issues/842/comments","events_url":"https://api.github.com/repos/tgriesser/knex/issues/842/events","html_url":"https://github.com/tgriesser/knex/issues/842","id":79789397,"number":842,"title":"Pool2 - Error: Pool.release()","user":{"login":"jacobfunch","id":7419972,"avatar_url":"https://avatars.githubusercontent.com/u/7419972?v=3","gravatar_id":"","url":"https://api.github.com/users/jacobfunch","html_url":"https://github.com/jacobfunch","followers_url":"https://api.github.com/users/jacobfunch/followers","following_url":"https://api.github.com/users/jacobfunch/following{/other_user}","gists_url":"https://api.github.com/users/jacobfunch/gists{/gist_id}","starred_url":"https://api.github.com/users/jacobfunch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacobfunch/subscriptions","organizations_url":"https://api.github.com/users/jacobfunch/orgs","repos_url":"https://api.github.com/users/jacobfunch/repos","events_url":"https://api.github.com/users/jacobfunch/events{/privacy}","received_events_url":"https://api.github.com/users/jacobfunch/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-05-23T09:12:32Z","updated_at":"2015-06-30T09:43:26Z","closed_at":null,"body":"I'm experiencing a new issue with the latest update to Pool2.\r\n```\r\n\"switching to Pool2 in place of generic-pool-redux\" in 0.8.0 \r\n```\r\nError message:\r\n```\r\nKnex:Error Pool2 - Error: Pool.release(): Resource not member of pool \r\nUnhandled rejection Error: select \"sess\" from \"sessions\" where \"sid\" = $1 and CAST($2 as timestamp) \r\n```\r\n\r\nThe error appears when using knex.js and the connect-session-knex for session storage.\r\nRolling back to 0.7.5 fixed it."},"comment":{"url":"https://api.github.com/repos/tgriesser/knex/issues/comments/117097040","html_url":"https://github.com/tgriesser/knex/issues/842#issuecomment-117097040","issue_url":"https://api.github.com/repos/tgriesser/knex/issues/842","id":117097040,"user":{"login":"ArdentZeal","id":5508364,"avatar_url":"https://avatars.githubusercontent.com/u/5508364?v=3","gravatar_id":"","url":"https://api.github.com/users/ArdentZeal","html_url":"https://github.com/ArdentZeal","followers_url":"https://api.github.com/users/ArdentZeal/followers","following_url":"https://api.github.com/users/ArdentZeal/following{/other_user}","gists_url":"https://api.github.com/users/ArdentZeal/gists{/gist_id}","starred_url":"https://api.github.com/users/ArdentZeal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ArdentZeal/subscriptions","organizations_url":"https://api.github.com/users/ArdentZeal/orgs","repos_url":"https://api.github.com/users/ArdentZeal/repos","events_url":"https://api.github.com/users/ArdentZeal/events{/privacy}","received_events_url":"https://api.github.com/users/ArdentZeal/received_events","type":"User","site_admin":false},"created_at":"2015-06-30T09:43:26Z","updated_at":"2015-06-30T09:43:26Z","body":"Tue, 30 Jun 2015 09:39:29 GMT pool2 Pinging resource (id=11)\r\nTue, 30 Jun 2015 09:39:29 GMT pool2 Reserving request for resource (id=8)\r\nTue, 30 Jun 2015 09:39:29 GMT pool2 Pinging resource (id=8)\r\nTue, 30 Jun 2015 09:39:29 GMT pool2 Allocating resource (id=0) to request; waited 0.019s\r\nTue, 30 Jun 2015 09:39:29 GMT pool2 Allocating resource (id=11) to request; waited 0.015s\r\nTue, 30 Jun 2015 09:39:29 GMT pool2 Allocating resource (id=8) to request; waited 0.021s\r\n[Error: insert into \"strucd_activities\" (\"activityType\", \"created_at\", \"isSystemMessage\", \"listId\", \"listImported_at\", \"listImported_rowcount\", \"shortId\", \"updated_at\", \"userId\", \"uuid\") values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) returning \"id\" - Connection terminated]\r\n\r\nI am using the default poolsize for development (docs say: { min: 2, max: 10 }). I guess the problem occurs because it tries to get id=11 although max should be 10.\r\n\r\n"}}