[SERVER-61602] timeseries_min_max.js assumes measurements are returned in insertion order Created: 18/Nov/21  Updated: 29/Oct/23  Resolved: 19/Nov/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.2.0, 5.1.2, 5.0.6

Type: Bug Priority: Major - P3
Reporter: Gregory Wlodarek Assignee: Gregory Wlodarek
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v5.1, v5.0
Sprint: Execution Team 2021-11-29
Participants:
Linked BF Score: 58

 Description   

The test assumes that the last inserted measurement will be in the last inserted bucket. There's no guarantee of that being always true. This issue was revealed after SERVER-61194, where the instance bytes of the ObjectId can be different on the same process as they get modified to prevent the risk of overflowing if a lot of buckets are being generated.



 Comments   
Comment by Githook User [ 24/Nov/21 ]

Author:

{'name': 'Dan Larkin-York', 'email': 'dan.larkin-york@mongodb.com', 'username': 'dhly-etc'}

Message: SERVER-61602 timeseries_min_max.js does not assume measurements are returned in insertion order
Branch: v5.1
https://github.com/mongodb/mongo/commit/491b294058238ad9f371a744c1a9230a4f2813c3

Comment by Githook User [ 24/Nov/21 ]

Author:

{'name': 'Dan Larkin-York', 'email': 'dan.larkin-york@mongodb.com', 'username': 'dhly-etc'}

Message: SERVER-61602 timeseries_min_max.js does not assume measurements are returned in insertion order
Branch: v5.0
https://github.com/mongodb/mongo/commit/5020d2f2bf05d427943f7e78857ff0b235fc3027

Comment by Githook User [ 19/Nov/21 ]

Author:

{'name': 'Gregory Wlodarek', 'email': 'gregory.wlodarek@mongodb.com', 'username': 'GWlodarek'}

Message: SERVER-61602 timeseries_min_max.js does not assume measurements are returned in insertion order
Branch: master
https://github.com/mongodb/mongo/commit/322d12d883c420bf6d94f8ec1a9a8c77905e330c

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