[SERVER-74248] Adapt the aggregation pipeline supporting nss.watch() to the op entry rules implemented by shardCollection Created: 22/Feb/23  Updated: 27/Oct/23  Resolved: 23/Mar/23

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

Type: Task Priority: Major - P3
Reporter: Paolo Polato Assignee: Mindaugas Malinauskas
Resolution: Gone away Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-74200 Implement the 2-phase oplog notificat... Closed
Sprint: QE 2023-03-06, QE 2023-03-20, QE 2023-04-03
Participants:

 Description   

SERVER-74200 is introducing a 2-phase notification protocol to describe the commit of a shardCollection request.

The protocol is planning to expand the existing schema for the shardCollection op entry, which is a user-visible event.

In order to maintain the existing contract between mongos and the clients of a nss/cluster.watch() command, the pipeline that feeds change stream events should be modified so that:

  • only shardCollection events with phase: "commitSuccessful" | MISSING may reach the user
  • the original schema of the op entry is applied (that is, the fields introduced by SERVER-74200 get removed).

Generated at Thu Feb 08 06:26:54 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.