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

MongoCursorNotFoundException Scala driver 2.8/Mongo 3.6

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Query Operations
    • Labels:
      None
    • Environment:
      Scala Driver 2.8/Java Driver 3.12 querying mongodb 3.6.3

      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

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

              Created:
              Updated:
              Resolved: