{"action":"created","issue":{"url":"https://api.github.com/repos/christkv/mongodb-core/issues/89","repository_url":"https://api.github.com/repos/christkv/mongodb-core","labels_url":"https://api.github.com/repos/christkv/mongodb-core/issues/89/labels{/name}","comments_url":"https://api.github.com/repos/christkv/mongodb-core/issues/89/comments","events_url":"https://api.github.com/repos/christkv/mongodb-core/issues/89/events","html_url":"https://github.com/christkv/mongodb-core/issues/89","id":144501832,"number":89,"title":"Cursor not found when poolSize > 1","user":{"login":"iamdoron","id":3956042,"avatar_url":"https://avatars1.githubusercontent.com/u/3956042?v=3","gravatar_id":"","url":"https://api.github.com/users/iamdoron","html_url":"https://github.com/iamdoron","followers_url":"https://api.github.com/users/iamdoron/followers","following_url":"https://api.github.com/users/iamdoron/following{/other_user}","gists_url":"https://api.github.com/users/iamdoron/gists{/gist_id}","starred_url":"https://api.github.com/users/iamdoron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iamdoron/subscriptions","organizations_url":"https://api.github.com/users/iamdoron/orgs","repos_url":"https://api.github.com/users/iamdoron/repos","events_url":"https://api.github.com/users/iamdoron/events{/privacy}","received_events_url":"https://api.github.com/users/iamdoron/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":19,"created_at":"2016-03-30T08:24:53Z","updated_at":"2017-06-22T17:24:50Z","closed_at":"2016-03-30T11:47:59Z","body":"I'm not sure if it's a driver issue. I'm connecting to mongos (2 servers) through ssl with the following configuration:\n\n```\nconst mongoOptions = {\n mongos: {\n    ssl: true,\n    sslValidate: true,\n    sslCA: ca,\n    poolSize: <poolSize>\n  },\n  acceptableLatencyMS: 100,\n  socketOptions: {\n    keepAlive: 120\n  }\n}\n```\n\nmongodb-driver version 2.1.12, mongodb-core 1.3.12\n\nI'm running multiple queries (using the driver find().toArray()); 4 return empty results, 2 return ~1k results out of ~30k in the whole collection, the ~1k query takes  ~400ms to complete.\n\nsometimes I get the following errors when poolSize > 1\n\n```\n{ [MongoError: Cursor not found (namespace: 'db.collection', id: 9047773609076924875).]\n  name: 'MongoError',\n  message: 'Cursor not found (namespace: \\'db.collection\\', id: 9047773609076924875).',\n  ok: 0,\n  errmsg: 'Cursor not found (namespace: \\'db.collection\\', id: 9047773609076924875).',\n  code: 43 }\n```\n\nThe more you increase the poolSize, the higher the chance of it happening. And, of course, increasing the number of queries would also increase the error rate.\nwith poolSize=1 I wasn't able to reproduce this issue\n"},"comment":{"url":"https://api.github.com/repos/christkv/mongodb-core/issues/comments/310447080","html_url":"https://github.com/christkv/mongodb-core/issues/89#issuecomment-310447080","issue_url":"https://api.github.com/repos/christkv/mongodb-core/issues/89","id":310447080,"user":{"login":"YouriT","id":1449797,"avatar_url":"https://avatars3.githubusercontent.com/u/1449797?v=3","gravatar_id":"","url":"https://api.github.com/users/YouriT","html_url":"https://github.com/YouriT","followers_url":"https://api.github.com/users/YouriT/followers","following_url":"https://api.github.com/users/YouriT/following{/other_user}","gists_url":"https://api.github.com/users/YouriT/gists{/gist_id}","starred_url":"https://api.github.com/users/YouriT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YouriT/subscriptions","organizations_url":"https://api.github.com/users/YouriT/orgs","repos_url":"https://api.github.com/users/YouriT/repos","events_url":"https://api.github.com/users/YouriT/events{/privacy}","received_events_url":"https://api.github.com/users/YouriT/received_events","type":"User","site_admin":false},"created_at":"2017-06-22T17:24:50Z","updated_at":"2017-06-22T17:24:50Z","body":"just notice indeed I mixed up the dates my bad"}}
{"actor":{"display_login":"YouriT"}}