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

CursorNotFound Exception

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • 2.0
    • Performance
    • None
    • Scala 2.9, Java 1.6, Ubuntu 10.04, MongoDB 2.0.1

    Description

      Scott asked me to open this bug. We have been seeing CursorNotFound exceptions very infrequently in production. I added some client side logging the result of which is the following:

      resultSize=242 queryTime=0 toListTime=108 server=localhost:27021 cursorId=0
      resultSize=375 queryTime=0 toListTime=27 server=localhost:27021 cursorId=0
      resultSize=227 queryTime=0 toListTime=130 server=localhost:27021 cursorId=0
      resultSize=242 queryTime=0 toListTime=179 server=localhost:27021 cursorId=0

      The toListTime is the time in ms that it took to read the entire cursor into memory. We do this immediately after the query to get the closest thing to a snapshot view of the world when the query occurred. We were getting odd data races otherwise.

      Attachments

        Activity

          People

            jeff.yemin@mongodb.com Jeffrey Yemin
            bdarfler Benjamin Darfler
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: