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

Serialization and deserialization for shard-side change streams stages

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 5.0.0-rc0
    • None
    • None
    • None
    • Fully Compatible
    • Query Execution 2021-03-08, Query Execution 2021-03-22, Query Execution 2021-04-05, Query Execution 2021-05-17

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: