[SERVER-81994] $densify range doesn't re-parse correctly Created: 09/Oct/23  Updated: 10/Jan/24  Resolved: 01/Dec/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.2.1, 7.3.0-rc0

Type: Bug Priority: Major - P3
Reporter: Alyssa Clark Assignee: Mariano Shaar
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
is depended on by SERVER-85096 TRACKING: M3 Correctness Tickets Closed
Related
is related to SERVER-75596 Stress $queryStats read path for aggr... Closed
Assigned Teams:
Query Integration
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v7.2
Participants:
Linked BF Score: 175

 Description   

This ticket covers the densify failures in BF-30324.

 

"Was not able to re-parse queryStats key when reading queryStats.Status FailedToParse: unknown time unit value: ? Hash: 15049953989640584350 Query Shape: { cmdNs: { db: \"test\", coll: \"full_range\" }, command: \"aggregate\", pipeline: [ { $sort: { val: 1 } }, { $_internalDensify: { field: \"val\", partitionByFields: [], range: { step: 1, bounds: \"full\", unit: \"?\" } } } ] }"} 

Densify tests are failing in query_stats_aggregation_passthrough with the above. This appears to be due to RangeStatement serializing its "units" field as a literal, but expecting specific values on re-parse. 



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

Author:

{'name': 'Mariano Shaar', 'email': 'mariano.shaar@mongodb.com', 'username': 'shaargtz'}

Message: SERVER-81994 $densify range doesn't re-parse correctly
Branch: v7.2
https://github.com/mongodb/mongo/commit/5b36aec57c02d2dc641c7873dfe7a473428e48d3

Comment by Githook User [ 30/Nov/23 ]

Author:

{'name': 'Mariano Shaar', 'email': 'mariano.shaar@mongodb.com', 'username': 'shaargtz'}

Message: SERVER-81994 $densify range doesn't re-parse correctly
Branch: master
https://github.com/mongodb/mongo/commit/ca5f43b2d1f24d774059dbf3b676a050aebf67be

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