[SERVER-71839] Add 'canAppearOnlyOnce' stage constraint and stage-specific position check Created: 05/Dec/22  Updated: 29/Oct/23  Resolved: 13/Feb/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.0.0-rc0, 6.0.7

Type: Task Priority: Major - P3
Reporter: Romans Kasperovics Assignee: Romans Kasperovics
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
is depended on by SERVER-71828 Add $changeStreamSplitLargeEvent stage Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v6.0
Sprint: QE 2023-02-06, QE 2023-02-20
Participants:

 Description   

This impacts $geoNear and $unpackBucket stages.

Until now $unpackBucket was the only stage that can appear only once. With introduction of the $changeStreamSplitLargeEvents stage, both stages should use the same constraint enforcement mechanism.

Until now $geoNear stage was the only stage using special position requirement 'kFirstAfterOptimization'. $changeStreamSplitLargeEvents needs yet another special position check after optimization, so we will generalize this approach.



 Comments   
Comment by Githook User [ 08/Jun/23 ]

Author:

{'name': 'Romans Kasperovics', 'email': 'romans.kasperovics@mongodb.com', 'username': 'romanskas'}

Message: SERVER-71839 Add appear-once and custom position stage constraints
Branch: v6.0
https://github.com/mongodb/mongo/commit/902a9171c954cf3ce4abfb73a60a4098f3d11534

Comment by Githook User [ 10/Feb/23 ]

Author:

{'name': 'Romans Kasperovics', 'email': 'romans.kasperovics@mongodb.com', 'username': 'romanskas'}

Message: SERVER-71839 Add appear-once and custom position stage constraints
Branch: master
https://github.com/mongodb/mongo/commit/1de0264c6f0d48a21339e6a6a6a54b6b1e916f85

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