Allow change stream to resume from the earliest oplog entry

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Querying
    • None
    • Query
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      The current implementation of change stream allow a user to:

      • Start a change stream from the latest oplog entry
      • Resume after or start after a resume token
      • Start at a timestamp

      If we use a token that is not in the oplog or the timestamp is outside the oplog range, the change stream will fail.

      Once a failure happens, the user will have to restart the change stream.

      Proposition:

      • Add a method startAtFirst() which the MongoDB cluster would interpret as "start this change stream at the first oplog entry (oldest) that exists on a majority of nodes"

      Thanks

            Assignee:
            Backlog - Query Team (Inactive)
            Reporter:
            Davenson Lombard
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: