[SERVER-54676] Serialization and deserialization for shard-side change streams stages Created: 20/Feb/21  Updated: 29/Oct/23  Resolved: 12/May/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.0.0-rc0

Type: Improvement Priority: Major - P3
Reporter: Justin Seyster Assignee: Arun Banala
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-54913 Create a LiteParse class for change s... Closed
is depended on by SERVER-55491 Make DocumentSourceUpdateOnAddShards ... Closed
is depended on by SERVER-55438 Move applyOps unwinding logic to its ... Closed
is depended on by SERVER-55534 Store original pipeline in DocumentSo... Closed
is depended on by SERVER-56872 Add optimization function to apply $m... Closed
Duplicate
is duplicated by SERVER-54678 Updated explain format for internal c... Closed
Related
related to SERVER-54677 Serialization and deserialization for... Closed
Backwards Compatibility: Fully Compatible
Sprint: Query Execution 2021-03-08, Query Execution 2021-03-22, Query Execution 2021-04-05, Query Execution 2021-05-17
Participants:

 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.



 Comments   
Comment by Githook User [ 12/May/21 ]

Author:

{'name': 'Arun Banala', 'email': 'arun.banala@mongodb.com', 'username': 'banarun'}

Message: SERVER-54676 Serialization and deserialization for shard-side change streams stages
Branch: master
https://github.com/mongodb/mongo/commit/6e34f5094204aaf9bf14b51252ab347b4035b584

Comment by Arun Banala [ 23/Mar/21 ]

Code review URL: http://mongodbcr.appspot.com/754890021

Generated at Thu Feb 08 05:34:11 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.