Operational Defect Database

BugZero found this defect 122 days ago.

MongoDB | 2549940

Accumulators don't re-parse correctly with $queryStats

Last update date:

3/14/2024

Affected products:

MongoDB Server

Affected releases:

No affected releases provided.

Fixed releases:

8.0.0-rc0

7.3.0-rc2

Description:

Info

This ticket covers the $push failures in BF-31312 and $mergeObects failures in BF-31374. The are both due to the serialization of a $literal into an array such as {$push: {$literal: []} into {$push: []} causing this failure. This same issue can occur with other accumulators.

Top User Comments

xgen-internal-githook commented on Thu, 14 Mar 2024 22:32:13 +0000: Author: {'name': 'Mariano Shaar', 'email': 'mariano.shaar@mongodb.com', 'username': 'shaargtz'} Message: SERVER-85376: Fix accumulator re-parsing with arrays GitOrigin-RevId: 4e84b84628c3439c4787ac32005a23c43eda5671 Branch: v7.4test https://github.com/mongodb/mongo/commit/7608f943dcf55893bebe34c03c0d778c50fd97d6 xgen-internal-githook commented on Fri, 8 Mar 2024 15:33:50 +0000: Author: {'name': 'erinzhu001', 'email': 'erin.zhu@mongodb.com', 'username': 'erinzhu001'} Message: SERVER-87612: Query Stats Backport to 7.0 Batch #9 (#19673) SERVER-87612 Query Stats Backport to 7.0 Batch #9 backports SERVER-84261 Avoid unnecessary copies in FindCmdShape constructor SERVER-81486 Extract `CmdWithLetShape::makeDummyExpCtx()` as an `ExpressionContext` constructor SERVER-84300 Avoid reading the clocks to report query stats (#17689) SERVER-84446: Fix re-parsing of $geometry without specified type. (#17800) SERVER-83946 Enable query stats for the mutational fuzzers (#17851) SERVER-84159 Don't wrap expression constant representative values in $const (#17672) SERVER-84632 Absorb query stats not enabled errors in RunQueryStats hook setup (#17929) SERVER-84566 Fix re-parsing errors for complex geometry types (#17883) SERVER-85190 Query stats store max size should be an atomic (#18034) SERVER-84630: Default to $geometry point for $geoNear representative shape. (#17918) SERVER-84298 Fix memory accounting for querystats and add tests (#18000) SERVER-85485: Fix serialization of legacy geo expressions. (#18266) SERVER-84529 Sort readPreference tags in query shapes (#18151) SERVER-83926 Do not include mongos info in query stats' client metadata SERVER-85532: fix queryStats for invalid $hint syntax (#18225) SERVER-85374 Don't collect query stats for internal clients (#18219) SERVER-85719: Cleanup default parameters to serialize() calls. (#18385) SERVER-85376: Fix accumulator re-parsing with arrays SERVER-85719: Cleanup default parameters in serialize() calls. SERVER-85717 Shapify readConcern's 'atClusterTime' parameter (#18646) SERVER-86246: Include involved namespaces in AggCmd query shape size. (#18722) SERVER-86749 RunQueryStats hook should ignore all query stats disabl… (#19074)" SERVER-86654: Fix $regex $options re-parsing SERVER-84730 It's unsafe to reuse OpCtx for multiple operations when queryStats is concurrently disabled GitOrigin-RevId: 292accc379aa392d031b84d517eca462151d896c Branch: v7.0 https://github.com/mongodb/mongo/commit/22d80c8376d378ab15705333e19e0a4b58c7a7e1 xgen-internal-githook commented on Tue, 30 Jan 2024 06:09:30 +0000: Author: {'name': 'Mariano Shaar', 'email': 'mariano.shaar@mongodb.com', 'username': 'shaargtz'} Message: SERVER-85376: Fix accumulator re-parsing with arrays GitOrigin-RevId: 4e84b84628c3439c4787ac32005a23c43eda5671 Branch: v7.3 https://github.com/mongodb/mongo/commit/fadb6944612e2125f6002069bd4ce70a3591c148 xgen-internal-githook commented on Fri, 26 Jan 2024 19:55:46 +0000: Author: {'name': 'Mariano Shaar', 'email': 'mariano.shaar@mongodb.com', 'username': 'shaargtz'} Message: SERVER-85376: Fix accumulator re-parsing with arrays GitOrigin-RevId: 1aef432d05d7fff884359ec74bdb411719446bea Branch: master https://github.com/mongodb/mongo/commit/253d60267651733e278f8c4bd661449ba8d761c6

Steps to Reproduce


Additional Resources / Links

Share:

BugZero® Risk Score

What's this?

Coming soon

Status

Closed

Learn More

Search:

...