[SERVER-60406] $searchMeta fails on unsharded collection in sharded cluster when there are no search results Created: 01/Oct/21  Updated: 29/Oct/23  Resolved: 05/Oct/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 5.0.3, 4.4.9
Fix Version/s: 4.4.10, 5.0.4

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

Issue Links:
Backports
Related
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.4
Sprint: QO 2021-10-18
Participants:

 Description   

It looks to be a problem specifically within the $unionWith that $searchMeta expands to. I can now reproduce and have what I think is a fix. I believe SERVER-59097 will fix this on master and I believe the plan is to backport that to the 5.0 branch.



 Comments   
Comment by Githook User [ 05/Oct/21 ]

Author:

{'name': 'Charlie Swanson', 'email': 'charlie.swanson@mongodb.com', 'username': 'cswanson310'}

Message: SERVER-60406 SERVER-52310 Enable feature flag for $searchMeta
Branch: v5.0
https://github.com/mongodb/mongo/commit/f537d9c1c358350075699808d671add0b15de48b

Comment by Githook User [ 05/Oct/21 ]

Author:

{'name': 'Charlie Swanson', 'email': 'charlie.swanson@mongodb.com', 'username': 'cswanson310'}

Message: SERVER-60406 SERVER-52310 Enable feature flag for $searchMeta
Branch: v5.0
https://github.com/10gen/mongo-enterprise-modules/commit/505c8febeb3a87357b9d3fde9b5a9ebe211ad29a

Comment by Githook User [ 05/Oct/21 ]

Author:

{'name': 'Charlie Swanson', 'email': 'charlie.swanson@mongodb.com', 'username': 'cswanson310'}

Message: SERVER-60406 Harden $searchMeta implementation in unsharded collection
Branch: v4.4
https://github.com/mongodb/mongo/commit/bd574911e9d1686922476938920516c37f9083f9

Comment by Githook User [ 05/Oct/21 ]

Author:

{'name': 'Charlie Swanson', 'email': 'charlie.swanson@mongodb.com', 'username': 'cswanson310'}

Message: SERVER-60406 Harden $searchMeta implementation in unsharded collection
Branch: v4.4
https://github.com/10gen/mongo-enterprise-modules/commit/d82e88c1cc32afc86ed5044c49e4bc3eb381bbb4

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