Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-3556

MongoCursorNotFoundException Scala driver 2.8/Mongo 3.6

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Query Operations
    • Labels:
      None
    • 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

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            jake@threatwave.com Jake Burns
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: