{"action":"created","issue":{"url":"https://api.github.com/repos/sequelize/sequelize/issues/5964","repository_url":"https://api.github.com/repos/sequelize/sequelize","labels_url":"https://api.github.com/repos/sequelize/sequelize/issues/5964/labels{/name}","comments_url":"https://api.github.com/repos/sequelize/sequelize/issues/5964/comments","events_url":"https://api.github.com/repos/sequelize/sequelize/issues/5964/events","html_url":"https://github.com/sequelize/sequelize/issues/5964","id":156755108,"number":5964,"title":"connectionLock.unwrap is not a function","user":{"login":"djorg83","id":3258109,"avatar_url":"https://avatars.githubusercontent.com/u/3258109?v=3","gravatar_id":"","url":"https://api.github.com/users/djorg83","html_url":"https://github.com/djorg83","followers_url":"https://api.github.com/users/djorg83/followers","following_url":"https://api.github.com/users/djorg83/following{/other_user}","gists_url":"https://api.github.com/users/djorg83/gists{/gist_id}","starred_url":"https://api.github.com/users/djorg83/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djorg83/subscriptions","organizations_url":"https://api.github.com/users/djorg83/orgs","repos_url":"https://api.github.com/users/djorg83/repos","events_url":"https://api.github.com/users/djorg83/events{/privacy}","received_events_url":"https://api.github.com/users/djorg83/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-05-25T13:47:16Z","updated_at":"2016-05-25T14:44:24Z","closed_at":null,"body":"```js\r\nconnect() {\r\n\tthis.sequelizeConnection = new Sequelize(this.sqlConfig.dbName, this.sqlConfig.username, this.sqlConfig.password, {\r\n\t        host: this.sqlConfig.ip,\r\n\t        dialect: 'mssql',\r\n\t        pool: {\r\n\t            max: 5,\r\n\t            min: 1,\r\n\t            idle: 10000\r\n\t        },\r\n\t        dialectOptions: {\r\n\t            encrypt: true,\r\n\t            requestTimeout: 0,\r\n\t            connectTimeout: 0\r\n\t        }\r\n\t    });\r\n\r\n    \tthis.defineModels();\r\n}\r\n```\r\n\r\n## What do you expect to happen?\r\nI expect this to maintain a connection pool of 1 to 5 connections.\r\n\r\n## What is actually happening?\r\nThis unhandled exception is causing my server to crash.  I am on version 3.23.0.  This happens after roughly 12 hours of uptime.\r\n\r\n[0] ..\\node_modules\\sequelize\\lib\\dialects\\mssql\\connection-manager.js:127\r\n[0]   var connection = connectionLock.unwrap();\r\n[0]                                   ^\r\n[0]\r\n[0] TypeError: connectionLock.unwrap is not a function\r\n[0]     at ConnectionManager.disconnect (..\\node_modules\\sequelize\\lib\\dialects\\mssql\\connection-manager.j\r\ns:127:35)\r\n[0]     at ConnectionManager.$disconnect (..\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manag\r\ner.js:253:41)\r\n[0]     at Object.ConnectionManager.initPools.pool.Pooling.Pool.destroy (..\\node_modules\\sequelize\\lib\\dia\r\nlects\\abstract\\connection-manager.js:99:14)\r\n[0]     at Pool.destroy (..\\node_modules\\sequelize\\node_modules\\generic-pool\\lib\\generic-pool.js:193:17)\r\n[0]     at Connection.<anonymous> (..\\node_modules\\sequelize\\lib\\dialects\\mssql\\connection-manager.js:118:\r\n21)\r\n[0]     at emitOne (events.js:77:13)\r\n[0]     at Connection.emit (events.js:169:7)\r\n[0]     at Connection.socketError (C:\\dev\\git\\rsp-client\\node_modules\\tedious\\lib\\connection.js:795:12)\r\n[0]     at Socket.bind (..\\node_modules\\tedious\\lib\\connection.js:33:15)\r\n[0]     at emitOne (events.js:82:20)\r\n[0]     at Socket.emit (events.js:169:7)\r\n[0]     at emitErrorNT (net.js:1250:8)\r\n[0]     at doNTCallback2 (node.js:429:9)\r\n[0]     at process._tickCallback (node.js:343:17)\r\n\r\n\r\nDialect: mssql \r\nDatabase version: \r\nSequelize version: 3.23.0\r\n"},"comment":{"url":"https://api.github.com/repos/sequelize/sequelize/issues/comments/221598791","html_url":"https://github.com/sequelize/sequelize/issues/5964#issuecomment-221598791","issue_url":"https://api.github.com/repos/sequelize/sequelize/issues/5964","id":221598791,"user":{"login":"djorg83","id":3258109,"avatar_url":"https://avatars.githubusercontent.com/u/3258109?v=3","gravatar_id":"","url":"https://api.github.com/users/djorg83","html_url":"https://github.com/djorg83","followers_url":"https://api.github.com/users/djorg83/followers","following_url":"https://api.github.com/users/djorg83/following{/other_user}","gists_url":"https://api.github.com/users/djorg83/gists{/gist_id}","starred_url":"https://api.github.com/users/djorg83/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djorg83/subscriptions","organizations_url":"https://api.github.com/users/djorg83/orgs","repos_url":"https://api.github.com/users/djorg83/repos","events_url":"https://api.github.com/users/djorg83/events{/privacy}","received_events_url":"https://api.github.com/users/djorg83/received_events","type":"User","site_admin":false},"created_at":"2016-05-25T14:44:23Z","updated_at":"2016-05-25T14:44:23Z","body":"I'm reverting to version 3.11.0 (our previous stable version) until this is fixed."}}
{"actor":{"display_login":"djorg83"}}