New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Aggregation Freamwork - cursor id <NUMBER> didn't exist on server #457
Comments
Can you elaborate on what a "long query" is in your case? According to the MongoDB manual, idle cursors will time out after an inactivity period of 10 minutes. I believe that inactivity period is the time between getmore requests for additional batches of results. While the A possible work-around may be to lower your batchSize on the |
OK. In addition, assuming my query performs FULL TABLE SCAN in several shards, do you think reducing the batch size may help? |
Depending on your query you might want to change the filter and/or the sorting in order to return the results quicker, and then instead do any additional checks in your application or script. |
The only related issue I found in JIRA was SERVER-6036, which looks relevant based on the linked Python driver issue. The feature is still not scheduled for implementation, and I don't know anything more than what is in the ticket itself.
Batch size does not influence whether a full table scan is performed. That is more of a question of the index (if any) that is used to start your aggregation pipeline. If you're not starting the pipeline with some combination of a |
OK, Thanks. Another question about the batch size. |
That is correct. We're only modifying the payload size between the driver and the server. This won't affect how you iterate on the results via a cursor object, since those getMore commands happen behind the scenes. |
Closing this, as the last question was answered. Feel free to re-open as needed if the issue isn't fully resolved. |
Hi There,
I'm using the aggregation framework and most of the features are working very good.
There is one issue if there are long queries and there is no way to set the cursor timeout or something like that.
The Error I'm getting is: "cursor id xxxxxxx didn't exist on server".
Please help me resolve it.
maybe configuration on the Mongo server themselves.
Maybe you have some idea or insights whether Mongo going to address this issue.
I'm using the following version:
mongodb
mongodb support => enabled
mongodb version => 1.2.0alpha3
mongodb stability => alpha
libmongoc version => 1.5.0-rc0
libbson version => 1.5.0-rc0
mongodb.debug => no value => no value
Thanks Guys.
The text was updated successfully, but these errors were encountered: