[SERVER-61021] Documents may be retrieved out of order in timeseries_delete.js Created: 26/Oct/21  Updated: 29/Oct/23  Resolved: 15/Nov/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.2.0, 5.0.5, 5.1.1

Type: Bug Priority: Major - P3
Reporter: Gregory Noma Assignee: Gregory Noma
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: 14

 Description   

In timeseries_delete.js, we check that the documents remaining in the collection are what we expect. However, it is not necessarily guaranteed that they will be retrieved in the same order that that we are checking them in. To fix this, we can either use assert.sameMembers or sort by time when performing the query.



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

Author:

{'name': 'Gregory Noma', 'email': 'gregory.noma@gmail.com', 'username': 'gregorynoma'}

Message: SERVER-61021 Relax `timeseries_delete.js` document order expectation

(cherry picked from commit 81a1605fc1443bfd87c9d9aa3bfb1b34ec332fef)
Branch: v5.1
https://github.com/mongodb/mongo/commit/909f95e66887d4fcd5bb77ea8008a0db9f6b5b32

Comment by Githook User [ 17/Nov/21 ]

Author:

{'name': 'Gregory Noma', 'email': 'gregory.noma@gmail.com', 'username': 'gregorynoma'}

Message: SERVER-61021 Relax `timeseries_delete.js` document order expectation

(cherry picked from commit 81a1605fc1443bfd87c9d9aa3bfb1b34ec332fef)
Branch: v5.0
https://github.com/mongodb/mongo/commit/ea0ad4850e8a7d5826bc2d2565a01a0402e555ee

Comment by Githook User [ 12/Nov/21 ]

Author:

{'name': 'Gregory Noma', 'email': 'gregory.noma@gmail.com', 'username': 'gregorynoma'}

Message: SERVER-61021 Relax `timeseries_delete.js` document order expectation
Branch: master
https://github.com/mongodb/mongo/commit/81a1605fc1443bfd87c9d9aa3bfb1b34ec332fef

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