[SERVER-38996] Allow $text within a lookup pipeline in the sharded case Created: 14/Jan/19  Updated: 27/Oct/23  Resolved: 21/Jun/19

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

Type: Bug Priority: Major - P3
Reporter: Brigitte Lamarche (Inactive) Assignee: Backlog - Query Team (Inactive)
Resolution: Gone away Votes: 0
Labels: open_todo_in_code, query-44-grooming, todo_in_code
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-38716 fix $geoNear and $text within $lookup... Closed
depends on SERVER-38728 Allow pipeline with $lookup into a sh... Closed
Related
related to SERVER-43498 Complete TODO listed in SERVER-38996 Closed
related to SERVER-44219 Complete TODO listed in SERVER-38996 Closed
Assigned Teams:
Query
Operating System: ALL
Participants:

 Description   

Currently, when doing a sharded lookup pipeline with a $text stage in the subpipeline, we will hit the following error:

{{"errmsg" : "Should never call getNext on a $match stage with $text clause",  "code" : 17309,  "codeName" : "Location17309",  "operationTime" : Timestamp(1547497994, 58),  "$clusterTime" : \{  "clusterTime" : Timestamp(1547497994, 58),  "signature" : {  "hash" : BinData(0,"AAAAAAAAAAAAAAAAAAAAAAAAAAA="),  "keyId" : NumberLong(0)  }  }}}

This comes from DocumentSourceMatch::getNext. 

 

Part of this ticket will be reenabling jstests/aggregation/sources/match/text_search_requires_index.js and jstests/aggregation/sources/lookup/lookup_contains_text.js



 Comments   
Comment by Githook User [ 19/Nov/19 ]

Author:

{'name': 'James Wahlin', 'username': 'jameswahlin', 'email': 'james.wahlin@mongodb.com'}

Message: SERVER-44219 Update stale TODO SERVER-38996 ticket reference
Branch: master
https://github.com/mongodb/mongo/commit/725ca73faa8298299c5fd629c321085dc154e28c

Comment by David Storch [ 21/Jun/19 ]

This ticket pertains specifically to a task that must be done in order to support $lookup into a sharded collection. It is not actionable until we renew the sharded $lookup effort. Closing as Gone Away.

Generated at Thu Feb 08 04:50:41 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.