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

Expand invariant checks in ARM to accommodate resharding pipelines

    • Query Execution
    • v5.0

      Currently, the oplog-tracking aggregation used by resharding executes on a dedicated thread. This has some drawbacks, so we would like to change it to use the Pipeline class and API instead. However, this requires a DocumentSourceMergeCursors stage to be prepended to the pipeline, and at present there are some invariants which only expect to see a postBatchResumeToken for a change stream.

      Eventually we want to allow the ARM to handle either kind of postBatchResumeToken. However, this will require further engineering effort on the mongoS side and an expansion of the work carried out under SERVER-53534 on the mongoD side. In the short-term, we should relax these constraints to allow resharding postBatchResumeTokens.

            Assignee:
            backlog-query-execution [DO NOT USE] Backlog - Query Execution
            Reporter:
            bernard.gorman@mongodb.com Bernard Gorman
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: