Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-37042

Handle exceptions from cursor.next in ReplSetTest

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.0.3, 4.1.4
    • Component/s: Testing Infrastructure
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v4.0
    • Linked BF Score:
      13

      Description

      The `checkOplogs` function in ReplSetTest assumes that if a cursors `hasNext()` function does not throw an error that that cursors `next()` function will also not throw an error. This is not true, however. There are some cases where `hasNext()` could return true and `next()` throws an error. The `checkOplogs` function should handle those cases.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              david.bradford David Bradford
              Reporter:
              david.bradford David Bradford
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: