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

Retry "CappedPositionLost" when searching for old oplog entries

    XMLWordPrintableJSON

Details

    • Fully Compatible
    • ALL
    • v4.4, v4.2
    • 9

    Description

      The query plan may yield between the cursor establishment and iterating to retrieve the first result. During this yield it's possible for the oplog to "roll over" or shrink. This is rare, but if these both happen the cursor will be unable to resume after yielding and return a "CappedPositionLost" error. This can be safely retried.

      We should update some tests which search for old oplog entries to retry this error.

      Attachments

        Activity

          People

            charlie.swanson@mongodb.com Charlie Swanson
            charlie.swanson@mongodb.com Charlie Swanson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: