{"action":"created","issue":{"url":"https://api.github.com/repos/Automattic/mongoose/issues/4789","repository_url":"https://api.github.com/repos/Automattic/mongoose","labels_url":"https://api.github.com/repos/Automattic/mongoose/issues/4789/labels{/name}","comments_url":"https://api.github.com/repos/Automattic/mongoose/issues/4789/comments","events_url":"https://api.github.com/repos/Automattic/mongoose/issues/4789/events","html_url":"https://github.com/Automattic/mongoose/issues/4789","id":194554524,"number":4789,"title":"4.7.1 => 4.7.2 : MongoError connection timed out ","user":{"login":"dcolens","id":1196562,"avatar_url":"https://avatars3.githubusercontent.com/u/1196562?v=4","gravatar_id":"","url":"https://api.github.com/users/dcolens","html_url":"https://github.com/dcolens","followers_url":"https://api.github.com/users/dcolens/followers","following_url":"https://api.github.com/users/dcolens/following{/other_user}","gists_url":"https://api.github.com/users/dcolens/gists{/gist_id}","starred_url":"https://api.github.com/users/dcolens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dcolens/subscriptions","organizations_url":"https://api.github.com/users/dcolens/orgs","repos_url":"https://api.github.com/users/dcolens/repos","events_url":"https://api.github.com/users/dcolens/events{/privacy}","received_events_url":"https://api.github.com/users/dcolens/received_events","type":"User","site_admin":false},"labels":[{"id":335758689,"url":"https://api.github.com/repos/Automattic/mongoose/labels/needs%20clarification","name":"needs clarification","color":"EB219B","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":35,"created_at":"2016-12-09T09:53:47Z","updated_at":"2017-09-20T07:28:36Z","closed_at":"2017-09-20T00:40:07Z","author_association":"NONE","body":"When testing mongoose@4.7.2 / mongodb@2.2.12, I get:\r\n> MongoError: connection 2 to XXXXXX timed out\r\n>     at Function.MongoError.create (/node_modules/mongodb-core/lib/error.js:29:11)\r\n>     at Socket.<anonymous> (/node_modules/mongodb-core/lib/connection/connection.js:186:20)\r\n>     at Socket.g (events.js:286:16)\r\n>     at emitNone (events.js:86:13)\r\n>     at Socket.emit (events.js:185:7)\r\n>     at Socket._onTimeout (net.js:333:8)\r\n>     at tryOnTimeout (timers.js:224:11)\r\n>     at Timer.listOnTimeout (timers.js:198:5)' } 'connection 2 to XXXXXX timed out\r\n\r\nthis does not happen with mongoose@4.7.1 / mongodb@2.2.11.\r\n\r\nMore details:\r\n   - query: aggregate with allowDiskUse(true).read('secondaryPreferred').cursor()\r\n   - timing: the error happens about 35s after sending the query (before first results are received)\r\n   - node version: v6.3.0\r\n   - npm version: 3.10.9\r\n   - connect options: \r\n```json\r\n{\r\n \"socketOptions\": {\r\n\t\"socketTimeoutMS\": 240000,\r\n\t\"keepAlive\": 10000,\r\n\t\"connectTimeoutMS\" : 30000\r\n} \r\n```\r\n   - query:\r\n```javascript\r\n[\r\n\t{ $match: {\r\n\t\t\t_id: { $lt: oid },\r\n\t\t\tsignature: { $exists: true }\r\n\t\t}\r\n\t},\r\n\t{ $group: { \r\n\t\t\t_id: { myid: '$myid', signature: '$signature' },\r\n\t\t\tcount: { $sum:  1 },\r\n\t\t\tmyid: { $first: '$myid' },\r\n\t\t\tdocs: { $push: { _id: '$_id', name: '$name' } }\r\n\t\t}\r\n\t},\r\n\t{ $match: {\r\n\t\t\tcount: { $gt : 1 }\r\n\t\t}\r\n\t}\r\n]\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/Automattic/mongoose/issues/comments/330768737","html_url":"https://github.com/Automattic/mongoose/issues/4789#issuecomment-330768737","issue_url":"https://api.github.com/repos/Automattic/mongoose/issues/4789","id":330768737,"user":{"login":"cyrilchapon","id":10728426,"avatar_url":"https://avatars1.githubusercontent.com/u/10728426?v=4","gravatar_id":"","url":"https://api.github.com/users/cyrilchapon","html_url":"https://github.com/cyrilchapon","followers_url":"https://api.github.com/users/cyrilchapon/followers","following_url":"https://api.github.com/users/cyrilchapon/following{/other_user}","gists_url":"https://api.github.com/users/cyrilchapon/gists{/gist_id}","starred_url":"https://api.github.com/users/cyrilchapon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cyrilchapon/subscriptions","organizations_url":"https://api.github.com/users/cyrilchapon/orgs","repos_url":"https://api.github.com/users/cyrilchapon/repos","events_url":"https://api.github.com/users/cyrilchapon/events{/privacy}","received_events_url":"https://api.github.com/users/cyrilchapon/received_events","type":"User","site_admin":false},"created_at":"2017-09-20T07:28:36Z","updated_at":"2017-09-20T07:28:36Z","author_association":"NONE","body":"Why this silent close ?"}}
{"actor":{"display_login":"cyrilchapon"}}