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

CursorNotFound Exception

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Gone away
    • Affects Version/s: 2.0
    • Fix Version/s: None
    • Component/s: Performance
    • Labels:
      None
    • Environment:
      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

            Assignee:
            jeff.yemin Jeffrey Yemin
            Reporter:
            bdarfler Benjamin Darfler
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: