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

Serialization and deserialization for shard-side change streams stages

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • Query Execution 2021-03-08, Query Execution 2021-03-22, Query Execution 2021-04-05, Query Execution 2021-05-17

      The shard-side stages of a change stream are:

      $_internalOplogMatch, $_internalChangeStreamTransform, $_internalCheckInvalidate, $_internalCheckResumability

      In addition to adding serialization, all these stages except for $_internalChangeStreamTransform should have the 
      Privilege(ResourcePattern::forClusterResource(), ActionType::internal) in their requiredPrivileges. The requiredPrivileges for $_internalChangeStreamTransform should be the same as those provided by DocumentSourceChangeStream.
       
      Note that all these must be added in one patch, so that the shard side of a decomposed $changeStream can be completely serialized and deserialized together.

            Assignee:
            arun.banala@mongodb.com Arun Banala
            Reporter:
            justin.seyster@mongodb.com Justin Seyster
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: