Serialization and deserialization for shard-side change streams stages

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: 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
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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
              Reporter:
              Justin Seyster
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: