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

    • Type: Task
    • Resolution: Won't Fix
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Test Coverage
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            Unassigned
            Reporter:
            Daniel Gottlieb (Inactive)
            None
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: