[SERVER-85376] Accumulators don't re-parse correctly with $queryStats Created: 18/Jan/24  Updated: 30/Jan/24  Resolved: 29/Jan/24

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

Type: Bug Priority: Major - P3
Reporter: Erin Zhu Assignee: Mariano Shaar
Resolution: Fixed Votes: 0
Labels: flag-for-2885-backport
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Fix
Related
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v7.3
Participants:
Linked BF Score: 145

 Description   

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. 



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

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

Comment by Githook User [ 26/Jan/24 ]

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

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