[JAVA-3556]  MongoCursorNotFoundException Scala driver 2.8/Mongo 3.6 Created: 17/Dec/19  Updated: 26/Dec/19  Resolved: 26/Dec/19

Status: Closed
Project: Java Driver
Component/s: Query Operations
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Jake Burns Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Scala Driver 2.8/Java Driver 3.12 querying mongodb 3.6.3



 Description   

Using Scala Driver 2.8/Java Driver 3.12 against a mongo database 3.6.x frequently errors out with something along the lines of:

Stacktrace:

_/ java.lang.Exception: [foo.barbaz@ssh-mymongo [replica set]] Database error!
____/ Mongo Server error (MongoCursorNotFoundException): Query failed with error code -5 and error message 'Cursor 434643071447 not found on server mongo01.mydomain.com:27017' on server mongo01.mydomain.com:27017

 

The driver compatibility chart says the latest mongo drivers are compatible with 3.6:

https://docs.mongodb.com/ecosystem/drivers/driver-compatibility-reference/#scala-driver-compatibility



 Comments   
Comment by Jeffrey Yemin [ 26/Dec/19 ]

Most likely, the issue is that the cursor timed out on the server (the default timeout is 10 minutes). Is it possible that your application does not iterate the cursor for that long of a period?

Just to let you know for future reference the best place for questions regarding MongoDB usage or the Java driver specifics is the mongodb-user mailinglist or stackoverflow as you will reach a broader audience there. If your business requires an answer from MongoDB within a time frame then we do offer production support.

Generated at Thu Feb 08 08:59:53 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.