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

Retry "CappedPositionLost" when searching for old oplog entries

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

      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.

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

              Created:
              Updated:
              Resolved: