{"action":"created","issue":{"url":"https://api.github.com/repos/meteor/meteor/issues/9944","repository_url":"https://api.github.com/repos/meteor/meteor","labels_url":"https://api.github.com/repos/meteor/meteor/issues/9944/labels{/name}","comments_url":"https://api.github.com/repos/meteor/meteor/issues/9944/comments","events_url":"https://api.github.com/repos/meteor/meteor/issues/9944/events","html_url":"https://github.com/meteor/meteor/issues/9944","id":329611652,"node_id":"MDU6SXNzdWUzMjk2MTE2NTI=","number":9944,"title":"[1.7.01] Cursor errors on large queries","user":{"login":"schlaegerz","id":8098360,"node_id":"MDQ6VXNlcjgwOTgzNjA=","avatar_url":"https://avatars0.githubusercontent.com/u/8098360?v=4","gravatar_id":"","url":"https://api.github.com/users/schlaegerz","html_url":"https://github.com/schlaegerz","followers_url":"https://api.github.com/users/schlaegerz/followers","following_url":"https://api.github.com/users/schlaegerz/following{/other_user}","gists_url":"https://api.github.com/users/schlaegerz/gists{/gist_id}","starred_url":"https://api.github.com/users/schlaegerz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schlaegerz/subscriptions","organizations_url":"https://api.github.com/users/schlaegerz/orgs","repos_url":"https://api.github.com/users/schlaegerz/repos","events_url":"https://api.github.com/users/schlaegerz/events{/privacy}","received_events_url":"https://api.github.com/users/schlaegerz/received_events","type":"User","site_admin":false},"labels":[{"id":371713890,"node_id":"MDU6TGFiZWwzNzE3MTM4OTA=","url":"https://api.github.com/repos/meteor/meteor/labels/Impact:some","name":"Impact:some","color":"fef2c0","default":false},{"id":164729264,"node_id":"MDU6TGFiZWwxNjQ3MjkyNjQ=","url":"https://api.github.com/repos/meteor/meteor/labels/Project:Mongo%20Driver","name":"Project:Mongo Driver","color":"009800","default":false},{"id":371713354,"node_id":"MDU6TGFiZWwzNzE3MTMzNTQ=","url":"https://api.github.com/repos/meteor/meteor/labels/Severity:production","name":"Severity:production","color":"e99695","default":false}],"state":"open","locked":false,"assignee":{"login":"hwillson","id":137740,"node_id":"MDQ6VXNlcjEzNzc0MA==","avatar_url":"https://avatars1.githubusercontent.com/u/137740?v=4","gravatar_id":"","url":"https://api.github.com/users/hwillson","html_url":"https://github.com/hwillson","followers_url":"https://api.github.com/users/hwillson/followers","following_url":"https://api.github.com/users/hwillson/following{/other_user}","gists_url":"https://api.github.com/users/hwillson/gists{/gist_id}","starred_url":"https://api.github.com/users/hwillson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hwillson/subscriptions","organizations_url":"https://api.github.com/users/hwillson/orgs","repos_url":"https://api.github.com/users/hwillson/repos","events_url":"https://api.github.com/users/hwillson/events{/privacy}","received_events_url":"https://api.github.com/users/hwillson/received_events","type":"User","site_admin":false},"assignees":[{"login":"hwillson","id":137740,"node_id":"MDQ6VXNlcjEzNzc0MA==","avatar_url":"https://avatars1.githubusercontent.com/u/137740?v=4","gravatar_id":"","url":"https://api.github.com/users/hwillson","html_url":"https://github.com/hwillson","followers_url":"https://api.github.com/users/hwillson/followers","following_url":"https://api.github.com/users/hwillson/following{/other_user}","gists_url":"https://api.github.com/users/hwillson/gists{/gist_id}","starred_url":"https://api.github.com/users/hwillson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hwillson/subscriptions","organizations_url":"https://api.github.com/users/hwillson/orgs","repos_url":"https://api.github.com/users/hwillson/repos","events_url":"https://api.github.com/users/hwillson/events{/privacy}","received_events_url":"https://api.github.com/users/hwillson/received_events","type":"User","site_admin":false}],"milestone":null,"comments":25,"created_at":"2018-06-05T20:25:37Z","updated_at":"2018-10-02T11:09:20Z","closed_at":null,"author_association":"NONE","body":"I just migrated my website to 1.7.0.1 and I am getting a lot of crashes and failures only one production. It never reproed on my test endpoint or locally\r\n```\r\n\r\nxception while polling query {\"collectionName\":\"cfs.UserModels.filerecord\",\"selector\":{},\"options\":{}} { MongoError: cursor id 196229525868 not found \r\n    at /app/.meteor/heroku_build/app/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb-core/lib/connection/pool.js:598:61 \r\n    at authenticateStragglers (/app/.meteor/heroku_build/app/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb-core/lib/connection/pool.js:516:16) \r\n     at Connection.messageHandler (/app/.meteor/heroku_build/app/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb-core/lib/connection/pool.js:552:5) \r\n  at emitMessageHandler (/app/.meteor/heroku_build/app/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb-core/lib/connection/connection.js:309:10) \r\n     at Socket.<anonymous> (/app/.meteor/heroku_build/app/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb-core/lib/connection/connection.js:452:17) \r\n    at emitOne (events.js:116:13) \r\n     at Socket.emit (events.js:211:7) \r\n     at addChunk (_stream_readable.js:263:12) \r\n     at readableAddChunk (_stream_readable.js:250:11) \r\n     at Socket.Readable.push (_stream_readable.js:208:10) \r\n     at TCP.onread (net.js:597:20) \r\n  => awaited here: \r\n    at Function.Promise.await (/app/.meteor/heroku_build/app/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/promise_server.js:56:12) \r\n    at Promise.asyncApply (packages/mongo/mongo_driver.js:1034:11) \r\n     at /app/.meteor/heroku_build/app/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/fiber_pool.js:43:40 \r\n => awaited here: \r\nat Promise.await (/app/.meteor/heroku_build/app/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/promise_server.js:60:12) \r\n     at SynchronousCursor._nextObject (packages/mongo/mongo_driver.js:1083:12) \r\n     at SynchronousCursor.forEach (packages/mongo/mongo_driver.js:1097:22) \r\n    at SynchronousCursor.getRawObjects (packages/mongo/mongo_driver.js:1146:12) \r\n    at PollingObserveDriver._pollMongo (packages/mongo/polling_observe_driver.js:153:44) \r\n     at Object.task (packages/mongo/polling_observe_driver.js:90:12) \r\n  at Meteor._SynchronousQueue.SQp._run (packages/meteor.js:872:16) \r\n     at packages/meteor.js:849:12 \r\n name: 'MongoError', \r\nmessage: 'cursor id 196229525868 not found', \r\n   ok: 0, \r\n   errmsg: 'cursor id 196229525868 not found', \r\n code: 43, \r\n codeName: 'CursorNotFound', \r\n   operationTime: Timestamp { _bsontype: 'Timestamp', low_: 1, high_: 1528229580 }, \r\n  '$clusterTime':  \r\n    { clusterTime: Timestamp { _bsontype: 'Timestamp', low_: 1, high_: 1528229580 }, \r\n  signature: { hash: [Object], keyId: [Object] } } } \r\n```\r\n\r\nI have a bunch of different ones of these popping up, I seem to be able to fix most of them if I set a limit on them or lower the scope\r\n\r\nNone of these happened on any earlier versions so I think it has to do with upgrading to the new mongo \r\n\r\nBefore I fixed some of easier to fix iterations of this bug I could see a pretty big memory leak that was going to crash my server every few hours:\r\n\r\n![screen shot 2018-06-06 at 1 21 55 pm](https://user-images.githubusercontent.com/8098360/41063158-bc492b1c-698c-11e8-88d0-a526a8ab4b74.png)\r\n\r\n\r\nI am now at a point where it is crashing only on queries I cannot really remove, some of which are built into the collection FS package, and one where I am displaying an \"infinite\" scroll list of items on my homepage, and as soon as it gets too big it seems to hit this crash occasionally.\r\n"},"comment":{"url":"https://api.github.com/repos/meteor/meteor/issues/comments/426234895","html_url":"https://github.com/meteor/meteor/issues/9944#issuecomment-426234895","issue_url":"https://api.github.com/repos/meteor/meteor/issues/9944","id":426234895,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNjIzNDg5NQ==","user":{"login":"pedrolucasoliva","id":10757421,"node_id":"MDQ6VXNlcjEwNzU3NDIx","avatar_url":"https://avatars0.githubusercontent.com/u/10757421?v=4","gravatar_id":"","url":"https://api.github.com/users/pedrolucasoliva","html_url":"https://github.com/pedrolucasoliva","followers_url":"https://api.github.com/users/pedrolucasoliva/followers","following_url":"https://api.github.com/users/pedrolucasoliva/following{/other_user}","gists_url":"https://api.github.com/users/pedrolucasoliva/gists{/gist_id}","starred_url":"https://api.github.com/users/pedrolucasoliva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pedrolucasoliva/subscriptions","organizations_url":"https://api.github.com/users/pedrolucasoliva/orgs","repos_url":"https://api.github.com/users/pedrolucasoliva/repos","events_url":"https://api.github.com/users/pedrolucasoliva/events{/privacy}","received_events_url":"https://api.github.com/users/pedrolucasoliva/received_events","type":"User","site_admin":false},"created_at":"2018-10-02T11:09:20Z","updated_at":"2018-10-02T11:09:20Z","author_association":"NONE","body":"I rolled back to 1.6.1.3 too."}}
{"actor":{"display_login":"pedrolucasoliva"}}