[SERVER-59743] $$SEARCH_META doesn't get set in $searchMeta if no documents are returned from mongot Created: 02/Sep/21  Updated: 29/Oct/23  Resolved: 02/Sep/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 5.0.3-rc0, 4.4.9-rc0
Fix Version/s: 5.0.3, 4.4.9, 5.0.3-rc0, 5.1.0-rc0

Type: Bug Priority: Major - P3
Reporter: Ted Tuckman Assignee: Ted Tuckman
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Problem/Incident
is caused by SERVER-58588 Implement $searchMeta stage Closed
Related
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v5.0, v4.4
Sprint: QE 2021-09-06
Participants:

 Description   

Its possible this is because we set $$SEARCH_META at runtime, and since we build the unionWith sub-pipeline before the value is set it remains unset on the copied expression context in the sub-pipeline.



 Comments   
Comment by Vivian Ge (Inactive) [ 06/Oct/21 ]

Updating the fixversion since branching activities occurred yesterday. This ticket will be in rc0 when it’s been triggered. For more active release information, please keep an eye on #server-release. Thank you!

Comment by Githook User [ 21/Sep/21 ]

Author:

{'name': 'Ted Tuckman', 'email': 'ted.tuckman@mongodb.com', 'username': 'TedTuckman'}

Message: SERVER-59743 Set SEARCH_META in $unionWith subpipeline
Branch: SERVER-58852
https://github.com/10gen/mongo-enterprise-modules/commit/a3d80a7a592c940f9a2e72b72536822925b31552

Comment by Githook User [ 02/Sep/21 ]

Author:

{'name': 'Ted Tuckman', 'email': 'ted.tuckman@mongodb.com', 'username': 'TedTuckman'}

Message: SERVER-59743 Set SEARCH_META in $unionWith subpipeline

(cherry-picked from commit 2b0d538db8c0c9b9d7992d4489ba7171c721dfb7)
(cherry-picked from commit a7a458ee9a78a3834c7a7f081dcd8bc73f2d0f21)
Branch: v4.4
https://github.com/mongodb/mongo/commit/057ee3d434a3822bc007d7a34524b4eb0a1aa1ea

Comment by Githook User [ 02/Sep/21 ]

Author:

{'name': 'Ted Tuckman', 'email': 'ted.tuckman@mongodb.com', 'username': 'TedTuckman'}

Message: SERVER-59743 Set SEARCH_META correctly if mongot returns no documents
Branch: v4.4
https://github.com/10gen/mongo-enterprise-modules/commit/c1b0422814e8ff84a4d981cd170303d4257b1c46

Comment by Githook User [ 02/Sep/21 ]

Author:

{'name': 'Ted Tuckman', 'email': 'ted.tuckman@mongodb.com', 'username': 'TedTuckman'}

Message: SERVER-59743 Set SEARCH_META in $unionWith subpipeline

(cherry-picked from commit a7a458ee9a78a3834c7a7f081dcd8bc73f2d0f21)
Branch: v5.0
https://github.com/mongodb/mongo/commit/2b0d538db8c0c9b9d7992d4489ba7171c721dfb7

Comment by Githook User [ 02/Sep/21 ]

Author:

{'name': 'Ted Tuckman', 'email': 'ted.tuckman@mongodb.com', 'username': 'TedTuckman'}

Message: SERVER-59743 Set SEARCH_META correctly if mongot returns no documents

(cherry-picked from commit a3d80a7a592c940f9a2e72b72536822925b31552)
Branch: v5.0
https://github.com/10gen/mongo-enterprise-modules/commit/c5e72b7d3f8aacc86882e83b6796495ae5ca07ec

Comment by Githook User [ 02/Sep/21 ]

Author:

{'name': 'Ted Tuckman', 'email': 'ted.tuckman@mongodb.com', 'username': 'TedTuckman'}

Message: SERVER-59743 Set SEARCH_META in $unionWith subpipeline
Branch: master
https://github.com/mongodb/mongo/commit/a7a458ee9a78a3834c7a7f081dcd8bc73f2d0f21

Comment by Githook User [ 02/Sep/21 ]

Author:

{'name': 'Ted Tuckman', 'email': 'ted.tuckman@mongodb.com', 'username': 'TedTuckman'}

Message: SERVER-59743 Set SEARCH_META in $unionWith subpipeline
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/a3d80a7a592c940f9a2e72b72536822925b31552

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