[SERVER-59218] Only replace the top-level metaField with "meta" for time-series updates/deletes Created: 10/Aug/21  Updated: 29/Oct/23  Resolved: 12/Aug/21

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

Type: Bug Priority: Major - P3
Reporter: Kris Satya (Inactive) Assignee: Kris Satya (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Backwards Compatibility: Fully Compatible
Backport Requested:
v5.0
Sprint: Execution Team 2021-08-23
Participants:

 Description   

Currently, the translateQuery in timeseries_update_delete_util.cpp replaces any occurrences of the metaField with "meta." However, it really should only replace any occurrences of top-level fields with the literal "meta". For example, if the metaField is "tag," and we queried on the field { "a":{ "tag": 1 }}, our current translation logic would substitute "tag" with "meta", but this is incorrect and we should leave the query as { "a":

{ "tag": 1 }

 }.



 Comments   
Comment by Githook User [ 07/Oct/21 ]

Author:

{'name': 'Kris Satya', 'email': 'kris.satya@mongodb.com', 'username': 'KoolCards'}

Message: SERVER-59218 Only replace top-level metaField with "meta" for time-series updates/deletes

(cherry picked from commit f248757ae1afe65eff50d79ae436673b1b5d58b3)
Branch: v5.0
https://github.com/mongodb/mongo/commit/a062d8fa380c1451d97e35ea3dbb04712c566976

Comment by Vivian Ge (Inactive) [ 06/Oct/21 ]

Updating the fixversion since branching activities occurred yesterday. This ticket will be in rc0 when it’s been triggered. For more active release information, please keep an eye on #server-release. Thank you!

Comment by Githook User [ 12/Aug/21 ]

Author:

{'name': 'Kris Satya', 'email': 'kris.satya@mongodb.com', 'username': 'KoolCards'}

Message: SERVER-59218 Only replace top-level metaField with "meta" for time-series updates/deletes
Branch: master
https://github.com/mongodb/mongo/commit/f248757ae1afe65eff50d79ae436673b1b5d58b3

Generated at Thu Feb 08 05:46:41 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.