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

Create a Java Driver test for ensuring an exception is thrown if a DBCursor in a capped collection gets wrapped over/overwritten by inserts.

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Won't Fix
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • Test Coverage
    • None

    Description

      Say we're tailing an oplog and have a DBCursor at May 9th, 2012 11:44AM. We keep this cursor alive (without incrementing it) long enough for the oplog to wrap around and overwrite the May 9th, 2012 11:44AM entry. If we call DBCursor.next() it should eventually throw an exception, if not immediately then when the cursor actually sends a getMore request to the server.

      Attachments

        Activity

          People

            Unassigned Unassigned
            daniel.gottlieb@mongodb.com Daniel Gottlieb (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: