[SERVER-85694] $searchMeta aggregation pipeline stage not passing correct query to mongot after PlanShardedSearch Created: 25/Jan/24 Updated: 08/Feb/24 Resolved: 05/Feb/24 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | 7.2.0 |
| Fix Version/s: | 7.2.1, 7.3.0-rc2 |
| Type: | Bug | Priority: | Critical - P2 |
| Reporter: | Evan Nixon | Assignee: | Charlie Swanson |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Assigned Teams: |
Query Execution
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Backwards Compatibility: | Fully Compatible | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Operating System: | ALL | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Backport Requested: |
v7.3, v7.2
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Steps To Reproduce: | On a sharded cluster running 7.2.0: Insert a document in collection "drug data":
Create a search index named "drugs" over collection "drug_data":
Run a query over collection "drug_data":
Observe error message:
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Participants: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Description |
|
In sharded 7.2 clusters, the object inside $searchMeta is not being correctly passed to shards after PlanShardedSearch When running an aggregation pipeline like
We can see this line in logs (verbosity set to 5):
The relevant part of this line, post-formatting, is:
Notice that in this pipeline, there is a "mongotQuery" object inside $searchMeta - this object should not exist. Keys+values inside this mongotQuery object should be children of the $searchMeta object. This is making it so that users are unable to use search facets on sharded clusters on version 7.2.0. |
| Comments |
| Comment by Githook User [ 08/Feb/24 ] |
|
Author: {'name': 'Charlie Swanson', 'email': 'charlie.swanson@mongodb.com', 'username': 'cswanson310'}Message: (cherry picked from commit ea677d2a0a6d94b798da18dfb269f679ff67df57) |
| Comment by Githook User [ 02/Feb/24 ] |
|
Author: {'name': 'Charlie Swanson', 'email': 'charlie.swanson@mongodb.com', 'username': 'cswanson310'}Message: GitOrigin-RevId: 57e0107998c45c39dcd8b90ed97a99b326aaa5df |
| Comment by Githook User [ 02/Feb/24 ] |
|
Author: {'name': 'Charlie Swanson', 'email': 'charlie.swanson@mongodb.com', 'username': 'cswanson310'}Message: GitOrigin-RevId: b9e1075e2679bc029ac593afc365f5b0b0ef46bc |
| Comment by Zixuan Zhuang [ 27/Jan/24 ] |
|
Sending back to evan.nixon@mongodb.com as this has been out of my knowledge now. |