[SERVER-76189] telemetry parsing accidentally ignores let Created: 17/Apr/23  Updated: 30/Jan/24  Resolved: 21/Apr/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.1.0-rc0

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:
Depends
is depended on by SERVER-75596 Stress $queryStats read path for aggr... Closed
Related
related to SERVER-76412 Separate variable binding and error c... Backlog
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: QO 2023-05-01
Participants:

 Description   

While trying to re-enable testing in SERVER-75596, I hit an error case where a find command with a reference to an unknown variable cannot be reported in telemetry. It came from this command:

{
  "find":"command_let_variables",
  "filter":{},
  "let":{"a":{"$rand":{}}},
  "projection":{"_id":"$$a"}
}

This suggests our re-parsing needs to examine the 'let' variables to parse correctly.



 Comments   
Comment by Githook User [ 30/Jan/24 ]

Author:

{'name': 'Erin Zhu', 'email': 'erin.zhu@mongodb.com', 'username': 'erinzhu001'}

Message: SERVER-85956 Backport QueryStats to 7.0 Batch #1

Includes
SERVER-75139: shapify $lookup, $unionWith, $facet
SERVER-75132: Shapify $indexStats, $queue, $graphLookup
SERVER-75513 Add support for $telemetry.redactionKey
SERVER-75398 New query shape definition for find command
SERVER-75110 Support SerializationOptions in IDL generated serializers
SERVER-76088 Fix sort and hint with $natural query shape
SERVER-75138 Add shapification for DocumentSources which use IDL for serialization
SERVER-76189 Define let variables when parsing for telemetry
and enterprise changes
SERVER-75139: Shapify $_internalSearchMongotRemote
SERVER-75398 New query shape definition for find command
GitOrigin-RevId: 2d5ea278172d9b2c88e27182722cb0bab2b261b1
Branch: v7.0
https://github.com/mongodb/mongo/commit/49a87c23def90c803065b3f5fbee730664233a62

Comment by Githook User [ 20/Apr/23 ]

Author:

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

Message: SERVER-76189 Define let variables when parsing for telemetry
Branch: master
https://github.com/mongodb/mongo/commit/1143b9463c340ccba76668e83cfc25be1a18e468

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