[SERVER-79894] first_n_last_n.js test relies on monotonic generated _id Created: 10/Aug/23  Updated: 29/Oct/23  Resolved: 10/Aug/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.1.0-rc0

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

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: QE 2023-08-21
Participants:
Linked BF Score: 35

 Description   

In first_n_last_n.js test we rely on insertMany to generate monotonically increasing object ids, but it didn't provide ordered: true to insert command and we don't guarantee that auto generated _id will be in order.

 



 Comments   
Comment by Githook User [ 10/Aug/23 ]

Author:

{'name': 'Ivan Fefer', 'email': 'ivan.fefer@mongodb.com', 'username': 'Fefer-Ivan'}

Message: SERVER-79894 Provide monotonic ids to docs in first_n_last_n.js
Branch: master
https://github.com/mongodb/mongo/commit/9dedbe3d61e2e60f22ea2089cb6bfccb12108016

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