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

Adding a new shard while awaiting a future startAtOperationTime can result in unexpected $changeStream events

    XMLWordPrintableJSON

Details

    • Query Execution
    • ALL

    Description

      If the user opens a change stream at a point in the future, and then adds a new shard before the cluster reaches that time, then the stream on the new shard will be opened at the current clusterTime. The stream will therefore be able to see events on the new shard even if these events precede the user's requested startAtOperationTime. The postBatchResumeToken returned to the client will also revert back-in-time to the current clusterTime.

      Attachments

        Activity

          People

            backlog-query-execution Backlog - Query Execution
            bernard.gorman@mongodb.com Bernard Gorman
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: