[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: |
|
||||
| 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: (cherry picked from commit f248757ae1afe65eff50d79ae436673b1b5d58b3) |
| 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: |